[Skiboot] [PATCH 11/61] external/xscom-utils: Add P10 chip info
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Mon Jul 19 23:19:22 AEST 2021
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
external/xscom-utils/adu_scoms.py | 2 ++
external/xscom-utils/getscom.c | 3 +++
external/xscom-utils/sram.c | 2 ++
3 files changed, 7 insertions(+)
diff --git a/external/xscom-utils/adu_scoms.py b/external/xscom-utils/adu_scoms.py
index d651b7e9f..e90634190 100755
--- a/external/xscom-utils/adu_scoms.py
+++ b/external/xscom-utils/adu_scoms.py
@@ -176,6 +176,8 @@ class GetSCom(object):
name = "P9 (Cumulus) processor"
elif id == 0xd9:
name = "P9P (Axone) processor"
+ elif id == 0xda:
+ name = "P10 processor"
elif id == 0xe9:
name = "Centaur memory buffer"
else:
diff --git a/external/xscom-utils/getscom.c b/external/xscom-utils/getscom.c
index c18a04972..67596e618 100644
--- a/external/xscom-utils/getscom.c
+++ b/external/xscom-utils/getscom.c
@@ -56,6 +56,9 @@ static void print_chip_info(uint32_t chip_id)
case 0xd9:
name = "P9P (Axone) processor";
break;
+ case 0xda:
+ name = "P10 processor";
+ break;
case 0xe9:
name = "Centaur memory buffer";
break;
diff --git a/external/xscom-utils/sram.c b/external/xscom-utils/sram.c
index 87df70e10..efe08d8e7 100644
--- a/external/xscom-utils/sram.c
+++ b/external/xscom-utils/sram.c
@@ -28,6 +28,7 @@
#define PVR_TYPE_P8NVL 0x004c /* Naples */
#define PVR_TYPE_P9 0x004e
#define PVR_TYPE_P9P 0x004f /* Axone */
+#define PVR_TYPE_P10 0x0080
#ifdef __powerpc__
static uint64_t get_xscom_base(void)
@@ -39,6 +40,7 @@ static uint64_t get_xscom_base(void)
switch (pvr >> 16) {
case PVR_TYPE_P9:
case PVR_TYPE_P9P:
+ case PVR_TYPE_P10: /* P10 OCB_PIB OCC Control Register is same for P9 and P10 */
return OCB_PIB_BASE_P9;
case PVR_TYPE_P8E:
--
2.31.1
More information about the Skiboot
mailing list