diff options
| author | Pali Rohár <[email protected]> | 2022-08-02 11:55:19 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2022-08-09 08:57:23 +0200 |
| commit | dfebc1b9087d003eea39fe2e641b75d1cbd23e89 (patch) | |
| tree | d3fce96925c7dcd85da73124b2725ea5cd3493d3 /arch | |
| parent | 7cd67018dd7f754c66cf08a76397bbee254b32aa (diff) | |
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 <[email protected]>
Tested-by: Tony Dinh <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/mach-mvebu/spl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index 13c99913c38..bfcba2e73ba 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) |
