aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>2020-08-04 23:02:21 +0530
committerOliver O'Halloran <oohall@gmail.com>2020-08-07 16:00:20 +1000
commitc4e720439895c93ff9dc61004153b4571b0851f0 (patch)
treef27d0f6cfbef9a7bcce52ddcce80804a7d9f2404 /core
parentd9c7d6833c00d50195a5822a1d3b3b3b84a8f239 (diff)
downloadskiboot-c4e720439895c93ff9dc61004153b4571b0851f0.zip
skiboot-c4e720439895c93ff9dc61004153b4571b0851f0.tar.gz
skiboot-c4e720439895c93ff9dc61004153b4571b0851f0.tar.bz2
Add POWER9 Cumulus processor PVR type
Add PVR checks and feature mapping for POWER9 Cumulus chip. Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/cpufeatures.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/cpufeatures.c b/core/cpufeatures.c
index f31850a..2e33d8a 100644
--- a/core/cpufeatures.c
+++ b/core/cpufeatures.c
@@ -942,6 +942,25 @@ void dt_add_cpufeatures(struct dt_node *root)
default:
assert(0);
}
+ } else if (is_power9c(version) &&
+ (PVR_VERS_MAJ(version) == 1)) {
+ /* P9C DD1.x */
+ switch (PVR_VERS_MIN(version)) {
+ case 1:
+ /* Cumulus DD1.1 => Nimbus DD2.1 */
+ cpu_feature_cpu = CPU_P9_DD2_0_1;
+ break;
+ case 2:
+ /* Cumulus DD1.2 */
+ cpu_feature_cpu = CPU_P9_DD2_2;
+ break;
+ case 3:
+ /* Cumulus DD1.3 */
+ cpu_feature_cpu = CPU_P9_DD2_3;
+ break;
+ default:
+ assert(0);
+ }
} else {
assert(0);
}