diff options
author | Manorit Chawdhry <m-chawdhry@ti.com> | 2025-03-17 10:24:23 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-03 11:37:46 -0600 |
commit | 201b08702e3de90ba8465b34ab2445cb2fd72de7 (patch) | |
tree | 2a53c5c4a810859405fa05e6bddbd4a824ecd8d1 /arch/arm/mach-k3/include/mach/hardware.h | |
parent | 61b6b2fcc9c4513f8d9243e02bd872c6ab94a305 (diff) |
soc: Add information to identify the J742S2 SoC family
J742S2 has the same part number as J784S4 but JTAG_DEVICE_ID has a
PKG bit that tells about J742S2.
Add support for reading JTAG_DEVICE_ID and set family as J742S2 based
on that.
Link: https://www.ti.com/lit/pdf/spruje3 (TRM)
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Diffstat (limited to 'arch/arm/mach-k3/include/mach/hardware.h')
-rw-r--r-- | arch/arm/mach-k3/include/mach/hardware.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/include/mach/hardware.h b/arch/arm/mach-k3/include/mach/hardware.h index b191d53a0f5..1657697fbd8 100644 --- a/arch/arm/mach-k3/include/mach/hardware.h +++ b/arch/arm/mach-k3/include/mach/hardware.h @@ -62,6 +62,12 @@ #define JTAG_ID_PARTNO_J722S 0xbba0 #define JTAG_ID_PARTNO_J784S4 0xbb80 +#define CTRLMMR_WKUP_JTAG_DEVICE_ID (WKUP_CTRL_MMR0_BASE + 0x18) +#define JTAG_DEV_J742S2_PKG_MASK GENMASK(2, 0) +#define JTAG_DEV_J742S2_PKG_SHIFT 0 + +#define JTAG_ID_PKG_J742S2 0x7 + #define K3_SOC_ID(id, ID) \ static inline bool soc_is_##id(void) \ { \ |