aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-06-02 15:55:46 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-06 20:49:05 +1000
commitc5fa0d718e9cda8999dcb83088118a7ea61814c5 (patch)
tree086b5cd211b8b4ab6591fa24d281c9443de50418 /include
parent682da462cdcd79b668c2f1999bb9cf955cbef63d (diff)
downloadskiboot-c5fa0d718e9cda8999dcb83088118a7ea61814c5.zip
skiboot-c5fa0d718e9cda8999dcb83088118a7ea61814c5.tar.gz
skiboot-c5fa0d718e9cda8999dcb83088118a7ea61814c5.tar.bz2
p8-i2c: occ: Add support for OCC to use I2C engines
This patch adds support to share the I2C engines with host and OCC. OCC uses I2C engines to read DIMM temperatures and to communicate with GPU. OCC Flag register is used for locking between host and OCC. Host requests for the bus by setting a bit in OCC Flag register. OCC sends an interrupt to indicate the change in ownership. Originally-from: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: Pretty heavily rework logic, including fixing bus owner change and separating out occ lock from sensor cache] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/i2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 2c4c6a1..e5e8584 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -110,4 +110,7 @@ static inline int i2c_check_quirk(struct i2c_request *req, int *rc)
extern void p8_i2c_init(void);
extern void p8_i2c_interrupt(uint32_t chip_id);
+/* P9 I2C Ownership Change OCC interrupt handler */
+extern void p9_i2c_bus_owner_change(u32 chip_id);
+
#endif /* __I2C_H */