]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: ds414: define CONFIG_SYS_U_BOOT_OFFS
authorEzra Buehler <ezra@easyb.ch>
Sat, 9 May 2020 20:05:39 +0000 (22:05 +0200)
committerStefan Roese <sr@denx.de>
Wed, 27 May 2020 05:02:24 +0000 (07:02 +0200)
Without CONFIG_SYS_U_BOOT_OFFS set to CONFIG_SYS_SPI_U_BOOT_OFFS, U-Boot
will be located at address 0x16000. But, SPL will try to load the
payload from 0x24000 causing the boot to hang.

Signed-off-by: Ezra Buehler <ezra@easyb.ch>
Reviewed-by: Stefan Roese <sr@denx.de>
include/configs/ds414.h

index e3693767b66de95fd5a71e8b768f66edc628d447..b179b99468ea56840a34e3a5b3a4ccc3f0e690e9 100644 (file)
 #define CONFIG_SPL_STACK               (0x40000000 + ((192 - 16) << 10))
 #define CONFIG_SPL_BOOTROM_SAVE                (CONFIG_SPL_STACK + 4)
 
+#if defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_SPI)
 /* SPL related SPI defines */
+#define CONFIG_SYS_U_BOOT_OFFS         CONFIG_SYS_SPI_U_BOOT_OFFS
+#endif
 
 /* DS414 bus width is 32bits */
 #define CONFIG_DDR_32BIT