diff options
author | Andrew Davis <afd@ti.com> | 2022-07-15 11:34:32 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-04 15:32:20 -0400 |
commit | d1c079557fe3098da02ba92bb4e4d382e6f9b12a (patch) | |
tree | 9c80b5f61295ebf5d6bf41c6233b15761df49951 /arch/arm/mach-k3/include/mach | |
parent | 63de2161e4b50ea2ce22088f6a73520504087a0c (diff) | |
download | u-boot-d1c079557fe3098da02ba92bb4e4d382e6f9b12a.zip u-boot-d1c079557fe3098da02ba92bb4e4d382e6f9b12a.tar.gz u-boot-d1c079557fe3098da02ba92bb4e4d382e6f9b12a.tar.bz2 |
arm: mach-k3: Add support for device type detection
K3 SoCs are available in a number of device types such as
GP, HS-FS, EMU, etc. Like OMAP SoCs we can detect this at runtime
and should print this out as part of the SoC information line.
We add this as part of the common.c file as it will be used
to also modify our security state early in the device boot.
Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-k3/include/mach')
-rw-r--r-- | arch/arm/mach-k3/include/mach/hardware.h | 10 |
1 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 7bbd5c2..028482b 100644 --- a/arch/arm/mach-k3/include/mach/hardware.h +++ b/arch/arm/mach-k3/include/mach/hardware.h @@ -32,6 +32,16 @@ #define JTAG_ID_VARIANT_MASK (0xf << 28) #define JTAG_ID_PARTNO_SHIFT 12 #define JTAG_ID_PARTNO_MASK (0xffff << 12) +#define K3_SEC_MGR_SYS_STATUS 0x44234100 +#define SYS_STATUS_DEV_TYPE_SHIFT 0 +#define SYS_STATUS_DEV_TYPE_MASK (0xf) +#define SYS_STATUS_DEV_TYPE_GP 0x3 +#define SYS_STATUS_DEV_TYPE_TEST 0x5 +#define SYS_STATUS_DEV_TYPE_EMU 0x9 +#define SYS_STATUS_DEV_TYPE_HS 0xa +#define SYS_STATUS_SUB_TYPE_SHIFT 8 +#define SYS_STATUS_SUB_TYPE_MASK (0xf << 8) +#define SYS_STATUS_SUB_TYPE_VAL_FS 0xa #define K3_ROM_BOOT_HEADER_MAGIC "EXTBOOT" |