aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-08-02 18:00:03 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-08-16 15:51:55 +1000
commitb310e8f79e6817e18bd0e3c606da50a00b425ef0 (patch)
treece32f54dcd49d92af5e88bc7b849ee083187a820 /include
parenta36a49440f60d5e8a9f8f61885bb99b376f149c5 (diff)
downloadskiboot-b310e8f79e6817e18bd0e3c606da50a00b425ef0.zip
skiboot-b310e8f79e6817e18bd0e3c606da50a00b425ef0.tar.gz
skiboot-b310e8f79e6817e18bd0e3c606da50a00b425ef0.tar.bz2
hw/phb4: Prevent register accesses when in reset
While the the ETU is in reset we cannot access any of the PHB registers. If a PHB register is accessed via the XSCOM indirect interface then we'll cause an ETU reset error which may prevent the PHB from being re-initialised once the reset is lifted. Prevent register accesses while in reset by adding a flag that is set while the ETU reset bit is high and checking that flag in the XSCOM (ASB) backdoor register access path. Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/phb4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb4.h b/include/phb4.h
index af2e3ed..1c68ec2 100644
--- a/include/phb4.h
+++ b/include/phb4.h
@@ -151,6 +151,7 @@ struct phb4_err {
#define PHB4_CFG_BLOCKED 0x00000004
#define PHB4_CAPP_RECOVERY 0x00000008
#define PHB4_CAPP_DISABLE 0x00000010
+#define PHB4_ETU_IN_RESET 0x00000020
struct phb4 {
unsigned int index; /* 0..5 index inside p9 */