]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: spl: Always fallback to BootROM boot method
authorPali Rohár <pali@kernel.org>
Tue, 2 Aug 2022 09:55:19 +0000 (11:55 +0200)
committerStefan Roese <sr@denx.de>
Tue, 9 Aug 2022 06:57:23 +0000 (08:57 +0200)
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 <pali@kernel.org>
Tested-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/spl.c

index 13c99913c380e230f6c97f1f6608066441b99eec..bfcba2e73babe592ff1f84a26bc4be436acf5407 100644 (file)
@@ -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)