public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] arm: mvebu: spl: Always fallback to BootROM boot method
@ 2022-08-02  9:55 Pali Rohár
  2022-08-02 21:50 ` Tony Dinh
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Pali Rohár @ 2022-08-02  9:55 UTC (permalink / raw)
  To: Stefan Roese, Tony Dinh; +Cc: u-boot

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>
---
 arch/arm/mach-mvebu/spl.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c
index 13c99913c380..bfcba2e73bab 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)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-08-09 11:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-02  9:55 [PATCH] arm: mvebu: spl: Always fallback to BootROM boot method Pali Rohár
2022-08-02 21:50 ` Tony Dinh
2022-08-02 22:00   ` Pali Rohár
2022-08-02 22:13     ` Tony Dinh
2022-08-03 10:24       ` Pali Rohár
2022-08-04  6:06         ` Tony Dinh
2022-08-04 23:06           ` Tony Dinh
2022-08-05 12:27             ` Pali Rohár
2022-08-03  6:48 ` Stefan Roese
2022-08-09 11:33 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox