aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/include
diff options
context:
space:
mode:
authorLokesh Vutla2020-08-05 22:44:22 +0530
committerLokesh Vutla2020-08-11 20:34:46 +0530
commit9c8f41beea79ec5b44df460947254b43f6d4ed9c (patch)
tree60f37c7eda1a9a13b1cb904f19792176fa601968 /arch/arm/mach-k3/include
parent30de1ba0d375e418e94628037f3a1e30ec58f9aa (diff)
arm: mach-k3: j7200: Add support for storing extended boot info from ROM
Starting J7200 SoC, ROM supports for loading sysfw directly from boot image. ROM passes this information on number of images that are loaded to bootloader at certain location. Add support for storing this information before it gets corrupted. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'arch/arm/mach-k3/include')
-rw-r--r--arch/arm/mach-k3/include/mach/hardware.h7
-rw-r--r--arch/arm/mach-k3/include/mach/j721e_hardware.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/include/mach/hardware.h b/arch/arm/mach-k3/include/mach/hardware.h
index 0ad761418bb..02b3df0e1b7 100644
--- a/arch/arm/mach-k3/include/mach/hardware.h
+++ b/arch/arm/mach-k3/include/mach/hardware.h
@@ -21,4 +21,11 @@
#define JTAG_ID_PARTNO_SHIFT 12
#define JTAG_ID_PARTNO_MASK (0xffff << 12)
+#define K3_ROM_BOOT_HEADER_MAGIC "EXTBOOT"
+
+struct rom_extended_boot_data {
+ char header[8];
+ u32 num_components;
+};
+
#endif /* _ASM_ARCH_HARDWARE_H_ */
diff --git a/arch/arm/mach-k3/include/mach/j721e_hardware.h b/arch/arm/mach-k3/include/mach/j721e_hardware.h
index 19873d6e28c..b98f0a82f19 100644
--- a/arch/arm/mach-k3/include/mach/j721e_hardware.h
+++ b/arch/arm/mach-k3/include/mach/j721e_hardware.h
@@ -51,6 +51,9 @@
#define CTRLMMR_LOCK_KICK1 0x0100c
#define CTRLMMR_LOCK_KICK1_UNLOCK_VAL 0xd172bc5a
+/* ROM HANDOFF Structure location */
+#define ROM_ENTENDED_BOOT_DATA_INFO 0x41cffb00
+
/* MCU SCRATCHPAD usage */
#define TI_SRAM_SCRATCH_BOARD_EEPROM_START CONFIG_SYS_K3_MCU_SCRATCHPAD_BASE