Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Configuration settings for quick boot from MMC on OMAP3 EVM. |
| 3 | * |
| 4 | * Copyright (C) 2006-2010 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | * |
| 6 | * Author : |
| 7 | * Sanjeev Premi <premi@ti.com> |
| 8 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __OMAP3_EVM_QUICK_MMC_H |
| 13 | #define __OMAP3_EVM_QUICK_MMC_H |
| 14 | |
| 15 | #include <asm/arch/cpu.h> |
Nishanth Menon | 987ec58 | 2015-03-09 17:12:04 -0500 | [diff] [blame] | 16 | #include <asm/arch/omap.h> |
Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 17 | |
| 18 | /* ---------------------------------------------------------------------------- |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 19 | * Supported U-Boot commands |
Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 20 | * ---------------------------------------------------------------------------- |
| 21 | */ |
| 22 | #define CONFIG_CMD_MMC |
| 23 | #define CONFIG_CMD_FAT |
| 24 | |
| 25 | /* |
| 26 | * Board revision is detected by probing the Ethernet chip. |
| 27 | * |
| 28 | * When revision is statically configured via CONFIG_STATIC_BOARD_REV, |
| 29 | * this option can be removed. Generated binary is leaner by ~16Kbytes. |
| 30 | */ |
Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 31 | |
| 32 | /* ---------------------------------------------------------------------------- |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 33 | * Supported U-Boot features |
Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 34 | * ---------------------------------------------------------------------------- |
| 35 | */ |
| 36 | #define CONFIG_SILENT_CONSOLE |
| 37 | #define CONFIG_ENV_IS_NOWHERE |
| 38 | |
| 39 | /* ---------------------------------------------------------------------------- |
| 40 | * Supported hardware |
| 41 | * ---------------------------------------------------------------------------- |
| 42 | */ |
| 43 | |
| 44 | /* MMC */ |
| 45 | #define CONFIG_MMC |
| 46 | #define CONFIG_GENERIC_MMC |
| 47 | #define CONFIG_OMAP_HSMMC |
| 48 | #define CONFIG_DOS_PARTITION |
| 49 | |
| 50 | /* ----------------------------------------------------------------------------- |
| 51 | * Include common board configuration |
| 52 | * ----------------------------------------------------------------------------- |
| 53 | */ |
| 54 | #include "omap3_evm_common.h" |
| 55 | |
| 56 | /* ----------------------------------------------------------------------------- |
| 57 | * Default environment |
| 58 | * ----------------------------------------------------------------------------- |
| 59 | */ |
| 60 | #define CONFIG_BOOTDELAY 0 |
| 61 | |
| 62 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 63 | "verify=no\0" \ |
| 64 | "silent=1" |
| 65 | |
| 66 | #define CONFIG_BOOTCOMMAND \ |
| 67 | "mmc rescan 0; " \ |
| 68 | "fatload mmc 0 0x82000000 uImage; " \ |
| 69 | "bootm 0x82000000;" |
| 70 | |
| 71 | /* |
| 72 | * Update the bootargs as necessary e.g. size of memory, partition and fstype |
| 73 | */ |
| 74 | #define CONFIG_BOOTARGS \ |
| 75 | "quiet " \ |
| 76 | "console=ttyO0,115200n8 " \ |
| 77 | "mem=128M " \ |
| 78 | "noinitrd " \ |
| 79 | "root=/dev/mmcblk0p2 rw " \ |
| 80 | "rootfstype=ext3 rootwait" |
| 81 | |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 82 | /* |
| 83 | * SPL |
| 84 | */ |
| 85 | #define CONFIG_SPL_MMC_SUPPORT |
| 86 | #define CONFIG_SPL_FAT_SUPPORT |
| 87 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ |
| 88 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ |
Paul Kocialkowski | e2ccdf8 | 2014-11-08 23:14:55 +0100 | [diff] [blame] | 89 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 |
Guillaume GARDET | 205b4f3 | 2014-10-15 17:53:11 +0200 | [diff] [blame] | 90 | #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 91 | |
Sanjeev Premi | 7f73209 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 92 | #endif /* __OMAP3_EVM_QUICK_MMC_H */ |