diff options
author | Pali Rohár <pali@kernel.org> | 2021-10-29 15:09:48 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-31 15:46:44 +0300 |
commit | d73db3042734f8077a5866d9d60d2eeda685b2ec (patch) | |
tree | 0b649a55a02d2d677b07aab08e6e17824f0f5749 /arch | |
parent | 60b9b47d295b9f197d1dee2f893a8c49fcbee10e (diff) | |
download | u-boot-d73db3042734f8077a5866d9d60d2eeda685b2ec.tar.xz |
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 <pali@kernel.org>
Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header")
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mvebu/spl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |