[PATCH v17 08/10] coresight: Add CORESIGHT_DEVID2 to linux/coresight.h
From: Songwei Chai
Date: Thu Nov 12 2026 - 22:13:22 EST
CORESIGHT_DEVID2 lives at a fixed, architecturally-defined offset
(0xfc0) within the generic CoreSight management register block,
immediately preceding CORESIGHT_DEVID (0xfc8). Components outside
drivers/hwtracing/coresight/ that follow the same register convention
(e.g. the Qualcomm TGU, which uses it to detect its timer/counter
capabilities) need to read it too.
Add it to the public include/linux/coresight.h so it can be shared
outside of drivers/hwtracing/coresight/, matching CORESIGHT_LAR and
CORESIGHT_DEVID already moved there.
Signed-off-by: Songwei Chai <songwei.chai@xxxxxxxxxxxxxxxx>
---
include/linux/coresight.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 5286b3606581..7ce0366c7c70 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -37,6 +37,7 @@
#define CORESIGHT_UNLOCK 0xc5acce55
#define CORESIGHT_LAR 0xfb0
#define CORESIGHT_DEVID 0xfc8
+#define CORESIGHT_DEVID2 0xfc0
static inline void CS_LOCK(void __iomem *addr)
{
--
2.34.1