diff options
author | Marek Vasut <marex@denx.de> | 2015-07-10 00:04:23 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 14:14:08 +0200 |
commit | d3f34e752dd432eb75e50b2f2ab44d0849b3deef (patch) | |
tree | 43065ca8f49fa5da23fcb4f873f73cea780a69d3 /include/configs | |
parent | 1d8c93939194fb075c429fa1cdc0f1e2a916d192 (diff) | |
download | u-boot-imx-d3f34e752dd432eb75e50b2f2ab44d0849b3deef.zip u-boot-imx-d3f34e752dd432eb75e50b2f2ab44d0849b3deef.tar.gz u-boot-imx-d3f34e752dd432eb75e50b2f2ab44d0849b3deef.tar.bz2 |
arm: socfpga: spl: Add support for booting from SD/MMC
Add code and configuration options to support booting from RAW
SD/MMC card as well as for ext4/vfat filesystems. Enable support
for booting from SD/MMC card, but don't enable the filesystem
support just yet to retain compatibility with old SoCFPGA card
format.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/socfpga_common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 1235aaa..c138080 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -300,6 +300,20 @@ unsigned int cm_get_qspi_controller_clk_hz(void); #define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_WATCHDOG_SUPPORT #define CONFIG_SPL_SERIAL_SUPPORT +#define CONFIG_SPL_MMC_SUPPORT + +/* SPL SDMMC boot support */ +#ifdef CONFIG_SPL_MMC_SUPPORT +#if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT) +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2 +#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img" +#define CONFIG_SPL_LIBDISK_SUPPORT +#else +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 3 +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0xa00 /* offset 2560 sect (1M+256k) */ +#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 800 /* 400 KB */ +#endif +#endif /* * Stack setup |