diff mbox series

[u-boot,v2019.04-aspeed-openbmc,02/11] ast2600: Specify boot order

Message ID 20210413080755.73572-3-joel@jms.id.au
State New
Headers show
Series Use HACE to | expand

Commit Message

Joel Stanley April 13, 2021, 8:07 a.m. UTC
Try to boot from the strapped device, but fall back to the UART.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 arch/arm/mach-aspeed/ast2600/spl.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Klaus Heinrich Kiwi April 14, 2021, 11:17 a.m. UTC | #1
On 4/13/2021 5:07 AM, Joel Stanley wrote:
> Try to boot from the strapped device, but fall back to the UART.
> 
> Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
> ---
>   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)
>   {
>
diff mbox series

Patch

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)
 {