ARM64: Add ThunderX2 CPU revision macro. Add ThunderX2 name in identcpu.c
Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Cavium
This commit is contained in:
parent
e719f05fc1
commit
46d1d55afb
@ -134,6 +134,7 @@ static const struct cpu_parts cpu_parts_arm[] = {
|
||||
/* Cavium */
|
||||
static const struct cpu_parts cpu_parts_cavium[] = {
|
||||
{ CPU_PART_THUNDERX, "ThunderX" },
|
||||
{ CPU_PART_THUNDERX2, "ThunderX2" },
|
||||
CPU_PART_NONE,
|
||||
};
|
||||
|
||||
|
@ -97,6 +97,8 @@
|
||||
#define CPU_REV_THUNDERX_1_0 0x00
|
||||
#define CPU_REV_THUNDERX_1_1 0x01
|
||||
|
||||
#define CPU_REV_THUNDERX2_0 0x00
|
||||
|
||||
#define CPU_IMPL(midr) (((midr) >> 24) & 0xff)
|
||||
#define CPU_PART(midr) (((midr) >> 4) & 0xfff)
|
||||
#define CPU_VAR(midr) (((midr) >> 20) & 0xf)
|
||||
|
Loading…
Reference in New Issue
Block a user