From: Pali Rohár Date: Tue, 2 Aug 2022 09:55:19 +0000 (+0200) Subject: arm: mvebu: spl: Always fallback to BootROM boot method X-Git-Tag: v2025.01-rc5-pxa1908~1317^2~18 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=dfebc1b9087d003eea39fe2e641b75d1cbd23e89;p=u-boot.git arm: mvebu: spl: Always fallback to BootROM boot method BootROM boot method should always work so always add it as fallback method to spl_boot_list. In case U-Boot SPI driver fails it is better to try using BootROM than hanging as by default only one boot method is specified. Signed-off-by: Pali Rohár Tested-by: Tony Dinh Reviewed-by: Stefan Roese --- diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index 13c99913c3..bfcba2e73b 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -271,6 +271,13 @@ u32 spl_boot_device(void) } } +void board_boot_order(u32 *spl_boot_list) +{ + spl_boot_list[0] = spl_boot_device(); + if (spl_boot_list[0] != BOOT_DEVICE_BOOTROM) + spl_boot_list[1] = BOOT_DEVICE_BOOTROM; +} + #else u32 spl_boot_device(void)