summaryrefslogtreecommitdiff
path: root/arch/arm/mach-keystone/include
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2015-09-19 16:26:38 +0530
committerTom Rini <trini@konsulko.com>2015-10-22 14:22:12 -0400
commitf11a328b54cedac00df5f2ddf4e267f3024a336f (patch)
tree093368b4e853908e21a8589bc377ee4b5509d640 /arch/arm/mach-keystone/include
parent1985abe207c4f37357b44a79dcd481602d8f83d1 (diff)
ARM: k2g: Add support for CPU detection
Adding CPU detection support for Keystone2 Galileo. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-keystone/include')
-rw-r--r--arch/arm/mach-keystone/include/mach/hardware.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-keystone/include/mach/hardware.h b/arch/arm/mach-keystone/include/mach/hardware.h
index f98a24eb57..cbb836c03b 100644
--- a/arch/arm/mach-keystone/include/mach/hardware.h
+++ b/arch/arm/mach-keystone/include/mach/hardware.h
@@ -247,6 +247,7 @@ typedef volatile unsigned int *dv_reg_p;
#define CPU_66AK2Hx 0xb981
#define CPU_66AK2Ex 0xb9a6
#define CPU_66AK2Lx 0xb9a7
+#define CPU_66AK2Gx 0xbb06
/* DEVSPEED register */
#define DEVSPEED_DEVSPEED_SHIFT 16
@@ -291,6 +292,11 @@ static inline u8 cpu_is_k2l(void)
return get_part_number() == CPU_66AK2Lx;
}
+static inline u8 cpu_is_k2g(void)
+{
+ return get_part_number() == CPU_66AK2Gx;
+}
+
static inline u8 cpu_revision(void)
{
u32 jtag_id = __raw_readl(KS2_JTAG_ID_REG);