diff options
author | Sylvain Lesne <lesne@alse-fr.com> | 2016-06-01 11:14:54 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-06-01 22:44:14 +0200 |
commit | d31e9c575f24f4b7f5f382ccae70d7a86bbc379d (patch) | |
tree | 067b49682e4dcd74aef1ad855ef59dc05fbcda49 | |
parent | 77cd5368cee8b6a5684877e1bf4d544bf271ef08 (diff) | |
download | u-boot-d31e9c575f24f4b7f5f382ccae70d7a86bbc379d.zip u-boot-d31e9c575f24f4b7f5f382ccae70d7a86bbc379d.tar.gz u-boot-d31e9c575f24f4b7f5f382ccae70d7a86bbc379d.tar.bz2 |
arm: socfpga: improve raw MMC SPL boot
Before this patch, when booting from MMC (no filesystem), the SPL
loaded U-Boot from a fixed offset.
It will now load U-Boot from an offset of 256kB (which is 4 times the
padded SPL image) in the third partition.
This behaviour is similar to what the vendor SPL (based on
U-Boot 2013.01) does, and allows to directly 'dd' the
u-boot-with-spl.sfp file to the A2 partition.
Signed-off-by: Sylvain Lesne <lesne@alse-fr.com>
-rw-r--r-- | include/configs/socfpga_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index aee4012..1f8b7b3 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -346,9 +346,9 @@ unsigned int cm_get_qspi_controller_clk_hz(void); #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 */ +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3 +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200 /* offset 512 sect (256k) */ +#define CONFIG_SPL_LIBDISK_SUPPORT #endif #endif |