From: Pali Rohár Date: Fri, 29 Oct 2021 12:09:48 +0000 (+0200) Subject: arm: mvebu: Fix booting from SATA X-Git-Tag: baikal/mips/sdk5.9~15^2^2~68^2~17 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=29227cfc1803e36af875398cb4e23186d835a3f0;p=uboot.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: 3f0f1d263c27 ("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: