From: Pali Rohár Date: Fri, 29 Oct 2021 12:09:48 +0000 (+0200) Subject: arm: mvebu: Fix booting from SATA X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d73db3042734f8077a5866d9d60d2eeda685b2ec;p=u-boot.git arm: mvebu: Fix booting from SATA Use proper SATA macro for boot_device switch in spl_boot_device() function. Signed-off-by: Pali Rohár Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") --- diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index cad3f0a488..73c4b9af3e 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -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: