summaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/include
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2023-10-18 21:27:18 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2023-10-18 12:24:00 -0500
commit5f8eb8ccc61b1b6df6dfbf62dd672ea027fb6850 (patch)
tree1cf4698bff386b240a039cffa4c42844bd86f4de /arch/arm/mach-k3/include
parent6db34d931e7970d05b208719efffad255471b661 (diff)
mach-k3: am62x: Fix BOOT_DEVICE_SPINAND index
BOOT_DEVICE_SPINAND and BOOT_DEVICE_UART have same index of 0x7, this leads to attempting SPINAND boot during UART boot. Fix this by allocating unique value to BOOT_DEVICE_SPINAND. While at that move it out of unused list as SPINAND boot is very much supported on AM62x SoCs. Fixes: 8c7827f522b0 ("arm: mack-k3: am62x: Add SPI NAND as a boot device") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'arch/arm/mach-k3/include')
-rw-r--r--arch/arm/mach-k3/include/mach/am62_spl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/include/mach/am62_spl.h b/arch/arm/mach-k3/include/mach/am62_spl.h
index e9949b52c1..28235fa08e 100644
--- a/arch/arm/mach-k3/include/mach/am62_spl.h
+++ b/arch/arm/mach-k3/include/mach/am62_spl.h
@@ -19,6 +19,7 @@
#define BOOT_DEVICE_UART 0x07
#define BOOT_DEVICE_MMC 0x08
#define BOOT_DEVICE_EMMC 0x09
+#define BOOT_DEVICE_SPINAND 0x10
#define BOOT_DEVICE_USB 0x2A
#define BOOT_DEVICE_DFU 0x0A
@@ -29,7 +30,6 @@
/* 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