Sanjeev Premi | 8fd2569 | 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 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of |
| 12 | * the License, or (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
| 15 | * kind, whether express or implied; without even the implied warranty |
| 16 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | */ |
| 19 | |
| 20 | #ifndef __OMAP3_EVM_QUICK_MMC_H |
| 21 | #define __OMAP3_EVM_QUICK_MMC_H |
| 22 | |
| 23 | #include <asm/arch/cpu.h> |
| 24 | #include <asm/arch/omap3.h> |
| 25 | |
| 26 | /* ---------------------------------------------------------------------------- |
| 27 | * Supported U-boot commands |
| 28 | * ---------------------------------------------------------------------------- |
| 29 | */ |
| 30 | #define CONFIG_CMD_MMC |
| 31 | #define CONFIG_CMD_FAT |
| 32 | |
| 33 | /* |
| 34 | * Board revision is detected by probing the Ethernet chip. |
| 35 | * |
| 36 | * When revision is statically configured via CONFIG_STATIC_BOARD_REV, |
| 37 | * this option can be removed. Generated binary is leaner by ~16Kbytes. |
| 38 | */ |
| 39 | #define CONFIG_CMD_NET |
| 40 | |
| 41 | /* ---------------------------------------------------------------------------- |
| 42 | * Supported U-boot features |
| 43 | * ---------------------------------------------------------------------------- |
| 44 | */ |
| 45 | #define CONFIG_SILENT_CONSOLE |
| 46 | #define CONFIG_ENV_IS_NOWHERE |
| 47 | |
| 48 | /* ---------------------------------------------------------------------------- |
| 49 | * Supported hardware |
| 50 | * ---------------------------------------------------------------------------- |
| 51 | */ |
| 52 | |
| 53 | /* MMC */ |
| 54 | #define CONFIG_MMC |
| 55 | #define CONFIG_GENERIC_MMC |
| 56 | #define CONFIG_OMAP_HSMMC |
| 57 | #define CONFIG_DOS_PARTITION |
| 58 | |
| 59 | /* ----------------------------------------------------------------------------- |
| 60 | * Include common board configuration |
| 61 | * ----------------------------------------------------------------------------- |
| 62 | */ |
| 63 | #include "omap3_evm_common.h" |
| 64 | |
| 65 | /* ----------------------------------------------------------------------------- |
| 66 | * Default environment |
| 67 | * ----------------------------------------------------------------------------- |
| 68 | */ |
| 69 | #define CONFIG_BOOTDELAY 0 |
| 70 | |
| 71 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 72 | "verify=no\0" \ |
| 73 | "silent=1" |
| 74 | |
| 75 | #define CONFIG_BOOTCOMMAND \ |
| 76 | "mmc rescan 0; " \ |
| 77 | "fatload mmc 0 0x82000000 uImage; " \ |
| 78 | "bootm 0x82000000;" |
| 79 | |
| 80 | /* |
| 81 | * Update the bootargs as necessary e.g. size of memory, partition and fstype |
| 82 | */ |
| 83 | #define CONFIG_BOOTARGS \ |
| 84 | "quiet " \ |
| 85 | "console=ttyO0,115200n8 " \ |
| 86 | "mem=128M " \ |
| 87 | "noinitrd " \ |
| 88 | "root=/dev/mmcblk0p2 rw " \ |
| 89 | "rootfstype=ext3 rootwait" |
| 90 | |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 91 | /* |
| 92 | * SPL |
| 93 | */ |
| 94 | #define CONFIG_SPL_MMC_SUPPORT |
| 95 | #define CONFIG_SPL_FAT_SUPPORT |
| 96 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ |
| 97 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ |
| 98 | #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1 |
| 99 | #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" |
| 100 | |
Sanjeev Premi | 8fd2569 | 2011-10-25 06:11:31 +0000 | [diff] [blame] | 101 | #endif /* __OMAP3_EVM_QUICK_MMC_H */ |