Skip to content
Snippets Groups Projects
Commit f11a328b authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini
Browse files

ARM: k2g: Add support for CPU detection


Adding CPU detection support for Keystone2 Galileo.

Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 1985abe2
No related branches found
No related tags found
No related merge requests found
...@@ -247,6 +247,7 @@ typedef volatile unsigned int *dv_reg_p; ...@@ -247,6 +247,7 @@ typedef volatile unsigned int *dv_reg_p;
#define CPU_66AK2Hx 0xb981 #define CPU_66AK2Hx 0xb981
#define CPU_66AK2Ex 0xb9a6 #define CPU_66AK2Ex 0xb9a6
#define CPU_66AK2Lx 0xb9a7 #define CPU_66AK2Lx 0xb9a7
#define CPU_66AK2Gx 0xbb06
/* DEVSPEED register */ /* DEVSPEED register */
#define DEVSPEED_DEVSPEED_SHIFT 16 #define DEVSPEED_DEVSPEED_SHIFT 16
...@@ -291,6 +292,11 @@ static inline u8 cpu_is_k2l(void) ...@@ -291,6 +292,11 @@ static inline u8 cpu_is_k2l(void)
return get_part_number() == CPU_66AK2Lx; 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) static inline u8 cpu_revision(void)
{ {
u32 jtag_id = __raw_readl(KS2_JTAG_ID_REG); u32 jtag_id = __raw_readl(KS2_JTAG_ID_REG);
......
...@@ -169,6 +169,9 @@ int print_cpuinfo(void) ...@@ -169,6 +169,9 @@ int print_cpuinfo(void)
case CPU_66AK2Ex: case CPU_66AK2Ex:
puts("66AK2Ex SR"); puts("66AK2Ex SR");
break; break;
case CPU_66AK2Gx:
puts("66AK2Gx SR");
break;
default: default:
puts("Unknown\n"); puts("Unknown\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment