diff options
| author | Pali Rohár <[email protected]> | 2021-10-29 14:09:48 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-10-31 08:46:44 -0400 |
| commit | d73db3042734f8077a5866d9d60d2eeda685b2ec (patch) | |
| tree | 0b649a55a02d2d677b07aab08e6e17824f0f5749 | |
| parent | 60b9b47d295b9f197d1dee2f893a8c49fcbee10e (diff) | |
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 <[email protected]>
Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header")
| -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 cad3f0a4889..73c4b9af3e6 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: |
