Skip to contentSkip to conversation

arm: mvebu: Fix booting from SATA

PATCH In review Pali Rohár 2 participants 2 messages Oct 29, 2021 – Oct 31, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mvebu: Fix booting from SATA

Use proper SATA macro for boot_device switch in spl_boot_device() function.

Fixes 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header")
---
 arch/arm/mach-mvebu/spl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mvebu/spl.c +2 -2
index cad3f0a48893..73c4b9af3e6d 100644
@@ -199,8 +199,8 @@ u32 spl_boot_device(void)
 		return BOOT_DEVICE_MMC1;
 #endif
 #ifdef CONFIG_SPL_SATA
-	case BOOT_FROM_SATA:
-		return BOOT_FROM_SATA;
+	case BOOT_DEVICE_SATA:
+		return BOOT_DEVICE_SATA;
 #endif
 #ifdef CONFIG_SPL_SPI_FLASH_SUPPORT
 	case BOOT_DEVICE_SPI:
Signature · 1 line
2.20.1
#1 lore raw
Quoted 4 lines · Pali Rohár

Use proper SATA macro for boot_device switch in spl_boot_device() function.

Fixes 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom