[PATCH u-boot v2019.04-aspeed-openbmc 02/11] ast2600: Specify boot order
Joel Stanley
joel at jms.id.au
Tue Apr 13 18:07:46 AEST 2021
Try to boot from the strapped device, but fall back to the UART.
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
arch/arm/mach-aspeed/ast2600/spl.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/mach-aspeed/ast2600/spl.c b/arch/arm/mach-aspeed/ast2600/spl.c
index 54f89b0e8431..d794421b4070 100644
--- a/arch/arm/mach-aspeed/ast2600/spl.c
+++ b/arch/arm/mach-aspeed/ast2600/spl.c
@@ -51,6 +51,12 @@ u32 spl_boot_device(void)
return BOOT_DEVICE_NONE;
}
+void board_boot_order(u32 *spl_boot_list)
+{
+ spl_boot_list[0] = spl_boot_device();
+ spl_boot_list[1] = ASPEED_BOOT_DEVICE_UART;
+}
+
#ifdef CONFIG_SPL_OS_BOOT
int spl_start_uboot(void)
{
--
2.30.2
More information about the openbmc
mailing list