diff mbox series

[11/12] libpdbg: Add more p9 fapi targets

Message ID 20200313011939.279770-12-amitay@ozlabs.org
State Accepted
Headers show
Series Update fapi targets in device tree | expand

Commit Message

Amitay Isaacs March 13, 2020, 1:19 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/hwunit.h          |  5 +++++
 libpdbg/p9_fapi_targets.c | 11 +++++++++++
 2 files changed, 16 insertions(+)
diff mbox series

Patch

diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h
index ae8a15a..2107d04 100644
--- a/libpdbg/hwunit.h
+++ b/libpdbg/hwunit.h
@@ -272,4 +272,9 @@  struct pauc {
 };
 #define target_to_pauc(x) container_of(x, struct pauc, target)
 
+struct capp {
+	struct pdbg_target target;
+};
+#define target_to_capp(x) container_of(x, struct capp, target)
+
 #endif /* __HWUNIT_H */
diff --git a/libpdbg/p9_fapi_targets.c b/libpdbg/p9_fapi_targets.c
index d38ecdb..1dc7af8 100644
--- a/libpdbg/p9_fapi_targets.c
+++ b/libpdbg/p9_fapi_targets.c
@@ -707,6 +707,16 @@  static struct chiplet p9_chiplet = {
 };
 DECLARE_HW_UNIT(p9_chiplet);
 
+struct capp p9_capp = {
+        .target = {
+                .name = "POWER9 capp",
+                .compatible = "ibm,power9-capp",
+                .class = "capp",
+		.translate = p9_unknown_translation,
+        },
+};
+DECLARE_HW_UNIT(p9_capp);
+
 __attribute__((constructor))
 static void register_p9_fapi_targets(void)
 {
@@ -735,4 +745,5 @@  static void register_p9_fapi_targets(void)
 	pdbg_hwunit_register(&p9_fc_hw_unit);
 	pdbg_hwunit_register(&p9_pauc_hw_unit);
 	pdbg_hwunit_register(&p9_chiplet_hw_unit);
+	pdbg_hwunit_register(&p9_capp_hw_unit);
 }