diff mbox series

[v2,01/20] libpdbg: Add p10

Message ID 20201001070814.102735-2-amitay@ozlabs.org
State Accepted
Headers show
Series Add p10 support to libpdbg | expand

Commit Message

Amitay Isaacs Oct. 1, 2020, 7:07 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
---
 libpdbg/libpdbg.h | 1 +
 libpdbg/target.h  | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h
index 180a609..2630fd7 100644
--- a/libpdbg/libpdbg.h
+++ b/libpdbg/libpdbg.h
@@ -53,6 +53,7 @@  enum pdbg_proc {
 	PDBG_PROC_UNKNOWN,  /**< Unknown processor */
 	PDBG_PROC_P8,       /**< POWER8 processor  */
 	PDBG_PROC_P9,       /**< POWER9 processor  */
+	PDBG_PROC_P10,      /**< POWER10 processor */
 };
 
 /**
diff --git a/libpdbg/target.h b/libpdbg/target.h
index a12cce8..572631f 100644
--- a/libpdbg/target.h
+++ b/libpdbg/target.h
@@ -29,8 +29,9 @@ 
 #define CHIP_ID_P8P 0xd3
 #define CHIP_ID_P9  0xd1
 #define CHIP_ID_P9P 0xd9
+#define CHIP_ID_P10 0xda
 
-enum chip_type {CHIP_UNKNOWN, CHIP_P8, CHIP_P8NV, CHIP_P9};
+enum chip_type {CHIP_UNKNOWN, CHIP_P8, CHIP_P8NV, CHIP_P9, CHIP_P10};
 
 struct pdbg_target_class {
 	char *name;