aboutsummaryrefslogtreecommitdiff
path: root/hdata/test
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.ibm.com>2019-02-10 14:42:18 -0600
committerStewart Smith <stewart@linux.ibm.com>2019-02-10 21:42:32 -0600
commitd3803711f8a9ac90e675bf9978d983f38d14b856 (patch)
tree9abfbee5b56928258beda511d45f1ca5b2046df1 /hdata/test
parent23470f10d0b1e120dc2d2f1606444fb6fc07b506 (diff)
downloadskiboot-d3803711f8a9ac90e675bf9978d983f38d14b856.zip
skiboot-d3803711f8a9ac90e675bf9978d983f38d14b856.tar.gz
skiboot-d3803711f8a9ac90e675bf9978d983f38d14b856.tar.bz2
Add PVR_TYPE_P9P
Enable a new PVR to get us running on another p9 variant. Signed-off-by: Reza Arbab <arbab@linux.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata/test')
-rw-r--r--hdata/test/hdata_to_dt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index c75a4ad..fd2957c 100644
--- a/hdata/test/hdata_to_dt.c
+++ b/hdata/test/hdata_to_dt.c
@@ -69,12 +69,14 @@ unsigned long tb_hz = 512000000;
#define PVR_TYPE_P8 0x004d
#define PVR_TYPE_P8NVL 0x004c
#define PVR_TYPE_P9 0x004e
+#define PVR_TYPE_P9P 0x004f
#define PVR_P7 0x003f0201
#define PVR_P7P 0x004a0201
#define PVR_P8E 0x004b0201
#define PVR_P8 0x004d0200
#define PVR_P8NVL 0x004c0100
#define PVR_P9 0x004e0200
+#define PVR_P9P 0x004f0100
#define SPR_PVR 0x11f /* RO: Processor version register */
@@ -299,6 +301,10 @@ int main(int argc, char *argv[])
fake_pvr = PVR_P9;
proc_gen = proc_gen_p9;
opt_count++;
+ } else if (strcmp(argv[i], "-9P") == 0) {
+ fake_pvr = PVR_P9P;
+ proc_gen = proc_gen_p9;
+ opt_count++;
}
}