]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: Fix booting from SATA
authorPali Rohár <pali@kernel.org>
Fri, 29 Oct 2021 12:09:48 +0000 (14:09 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 31 Oct 2021 12:46:44 +0000 (08:46 -0400)
Use proper SATA macro for boot_device switch in spl_boot_device() function.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header")
arch/arm/mach-mvebu/spl.c

index cad3f0a488933bdf9653db628124fc9e960ac1dc..73c4b9af3e6d36586eb81a6657eacd247569c8c7 100644 (file)
@@ -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: