mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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 <pali@kernel.org> Tested-by: Tony Dinh <mibodhi@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
7cd67018dd
commit
dfebc1b908
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue