[Skiboot] [PATCH 2/5] xscom: Add POWER9 scom reset

Michael Neuling mikey at neuling.org
Wed Mar 22 13:59:42 AEDT 2017


Add scom reset registers for POWER9.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hw/xscom.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/hw/xscom.c b/hw/xscom.c
index 4a5f0f2d73..2f55f12855 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -101,9 +101,15 @@ static void xscom_reset(uint32_t gcid)
 	mtspr(SPR_HMER, HMER_CLR_MASK);
 
 	/* Setup local and target scom addresses */
-	local = 0x202000f;
-	target1 = 0x2020007;
-	target2 = 0x2020009;
+	if (proc_gen == proc_gen_p9) {
+		local = 0x00090018;
+		target1 = 0x0090012;
+		target2 = 0x0090013;
+	} else {
+		local = 0x202000f;
+		target1 = 0x2020007;
+		target2 = 0x2020009;
+	}
 
 	/* First we need to write 0 to a register on our chip */
 	out_be64(xscom_addr(this_cpu()->chip_id, local), 0);
-- 
2.9.3



More information about the Skiboot mailing list