aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-05-13 15:21:36 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-05-15 15:43:19 +1000
commit7382324e9c410f15250bf109bb7d5449c2a74b82 (patch)
tree870ffcc8a14119530eaae2b94b39d766980fa8ec /hw
parent5beda3c6fe5b72aac95b4c13746ae598dfd64c01 (diff)
downloadskiboot-7382324e9c410f15250bf109bb7d5449c2a74b82.zip
skiboot-7382324e9c410f15250bf109bb7d5449c2a74b82.tar.gz
skiboot-7382324e9c410f15250bf109bb7d5449c2a74b82.tar.bz2
xscom: move more register definitions into processor-specific includes
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/occ.c1
-rw-r--r--hw/slw.c2
-rw-r--r--hw/xscom.c5
3 files changed, 8 insertions, 0 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 5dc05d3..60e176c 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -16,6 +16,7 @@
#include <skiboot.h>
#include <xscom.h>
+#include <xscom-p8-regs.h>
#include <io.h>
#include <cpu.h>
#include <chip.h>
diff --git a/hw/slw.c b/hw/slw.c
index fcf4d57..096202b 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -19,6 +19,8 @@
*/
#include <skiboot.h>
#include <xscom.h>
+#include <xscom-p8-regs.h>
+#include <xscom-p9-regs.h>
#include <io.h>
#include <cpu.h>
#include <chip.h>
diff --git a/hw/xscom.c b/hw/xscom.c
index 30f4e83..c484bee 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -164,6 +164,11 @@ static int xscom_clear_error(uint32_t gcid, uint32_t pcb_addr)
if (proc_gen != proc_gen_p9)
return 0;
+/* xscom clear address range/mask */
+#define XSCOM_CLEAR_RANGE_START 0x20010A00
+#define XSCOM_CLEAR_RANGE_END 0x20010ABF
+#define XSCOM_CLEAR_RANGE_MASK 0x200FFBFF
+
/*
* Due to a hardware issue where core responding to scom was delayed
* due to thread reconfiguration, leaves the scom logic in a state