[PATCH v2 3/4] arm: mach-k3: j722_spl: Add FAST XSPI boot mode

Prasanth Babu Mantena p-mantena at ti.com
Wed Dec 18 14:13:40 CET 2024


From: Vaishnav Achath <vaishnav.a at ti.com>

Fast XSPI boot mode is supported by J722S ROM, add that.

Signed-off-by: Vaishnav Achath <vaishnav.a at ti.com>
Signed-off-by: Prasanth Babu Mantena <p-mantena at ti.com>
---
 arch/arm/mach-k3/include/mach/j722s_spl.h | 1 +
 arch/arm/mach-k3/j722s/j722s_init.c       | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/arm/mach-k3/include/mach/j722s_spl.h b/arch/arm/mach-k3/include/mach/j722s_spl.h
index eab8c511b7c..a91cc82448f 100644
--- a/arch/arm/mach-k3/include/mach/j722s_spl.h
+++ b/arch/arm/mach-k3/include/mach/j722s_spl.h
@@ -24,6 +24,7 @@
 #define BOOT_DEVICE_DFU			0x0A
 #define BOOT_DEVICE_GPMC_NAND		0x0B
 #define BOOT_DEVICE_GPMC_NOR		0x0C
+#define BOOT_DEVICE_FAST_XSPI		0x0D
 #define BOOT_DEVICE_XSPI		0x0E
 #define BOOT_DEVICE_NOBOOT		0x0F
 
diff --git a/arch/arm/mach-k3/j722s/j722s_init.c b/arch/arm/mach-k3/j722s/j722s_init.c
index 01b00681f68..c4d99142e48 100644
--- a/arch/arm/mach-k3/j722s/j722s_init.c
+++ b/arch/arm/mach-k3/j722s/j722s_init.c
@@ -219,6 +219,8 @@ static u32 __get_primary_bootmedia(u32 devstat)
 		fallthrough;
 	case BOOT_DEVICE_XSPI:
 		fallthrough;
+	case BOOT_DEVICE_FAST_XSPI:
+		fallthrough;
 	case BOOT_DEVICE_SPI:
 		return BOOT_DEVICE_SPI;
 
-- 
2.34.1



More information about the U-Boot mailing list