diff --git a/arch/arm/mach-k3/am625_init.c b/arch/arm/mach-k3/am625_init.c index e90c18fdcc..59617c0da4 100644 --- a/arch/arm/mach-k3/am625_init.c +++ b/arch/arm/mach-k3/am625_init.c @@ -297,6 +297,9 @@ static u32 __get_primary_bootmedia(u32 devstat) case BOOT_DEVICE_EMMC: return BOOT_DEVICE_MMC1; + case BOOT_DEVICE_SERIAL_NAND: + return BOOT_DEVICE_SPINAND; + case BOOT_DEVICE_MMC: if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK) >> MAIN_DEVSTAT_PRIMARY_MMC_PORT_SHIFT) diff --git a/arch/arm/mach-k3/include/mach/am62_spl.h b/arch/arm/mach-k3/include/mach/am62_spl.h index 2c9139d2cc..2ba4b2a9ce 100644 --- a/arch/arm/mach-k3/include/mach/am62_spl.h +++ b/arch/arm/mach-k3/include/mach/am62_spl.h @@ -8,7 +8,7 @@ #define _ASM_ARCH_AM62_SPL_H_ /* Primary BootMode devices */ -#define BOOT_DEVICE_RAM 0x00 +#define BOOT_DEVICE_SERIAL_NAND 0x00 #define BOOT_DEVICE_OSPI 0x01 #define BOOT_DEVICE_QSPI 0x02 #define BOOT_DEVICE_SPI 0x03 @@ -29,8 +29,10 @@ /* U-Boot used aliases */ #define BOOT_DEVICE_ETHERNET 0x04 +#define BOOT_DEVICE_SPINAND 0x07 #define BOOT_DEVICE_MMC2 0x08 #define BOOT_DEVICE_MMC1 0x09 +#define BOOT_DEVICE_RAM 0x0F /* Invalid */ #define BOOT_DEVICE_MMC2_2 0x1F