From d3803711f8a9ac90e675bf9978d983f38d14b856 Mon Sep 17 00:00:00 2001 From: Reza Arbab Date: Sun, 10 Feb 2019 14:42:18 -0600 Subject: Add PVR_TYPE_P9P Enable a new PVR to get us running on another p9 variant. Signed-off-by: Reza Arbab Signed-off-by: Stewart Smith --- core/cpu.c | 1 + core/cpufeatures.c | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/cpu.c b/core/cpu.c index 36655fe..a0ed1c5 100644 --- a/core/cpu.c +++ b/core/cpu.c @@ -971,6 +971,7 @@ void init_boot_cpu(void) hid0_attn = SPR_HID0_POWER8_ENABLE_ATTN; break; case PVR_TYPE_P9: + case PVR_TYPE_P9P: proc_gen = proc_gen_p9; hile_supported = true; radix_supported = true; diff --git a/core/cpufeatures.c b/core/cpufeatures.c index 9f56c9b..070419d 100644 --- a/core/cpufeatures.c +++ b/core/cpufeatures.c @@ -57,9 +57,10 @@ #define CPU_P8_DD2 (1U << 1) #define CPU_P9_DD1 (1U << 2) #define CPU_P9_DD2 (1U << 3) +#define CPU_P9P (1U << 4) #define CPU_P8 (CPU_P8_DD1|CPU_P8_DD2) -#define CPU_P9 (CPU_P9_DD1|CPU_P9_DD2) +#define CPU_P9 (CPU_P9_DD1|CPU_P9_DD2|CPU_P9P) #define CPU_ALL (CPU_P8|CPU_P9) struct cpu_feature { @@ -910,6 +911,13 @@ void dt_add_cpufeatures(struct dt_node *root) } break; + case PVR_TYPE_P9P: + if (!cpu_name) + cpu_name = "POWER9P"; + + cpu_feature_isa = ISA_V3_0B; + cpu_feature_cpu = CPU_P9P; + break; default: return; } -- cgit v1.1