summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>2018-05-23 19:25:42 +0200
committerStewart Smith <stewart@linux.ibm.com>2018-06-01 02:07:26 -0500
commitbaa4156c71f40dc69c2f65d075e726054dba059d (patch)
treedaba85cdf9ca6333f1536fbaa3e7cb969cb0e726 /include
parentb5c863a86427db83cdb398f227e82745dbe255d0 (diff)
downloadblackbird-skiboot-baa4156c71f40dc69c2f65d075e726054dba059d.tar.gz
blackbird-skiboot-baa4156c71f40dc69c2f65d075e726054dba059d.zip
npu2-opencapi: Rework adapter reset
Rework a bit the code to reset the opencapi adapter: - make clearer which i2c pin is resetting which device - break the reset operation in smaller chunks. This is really to prepare for a future patch. No functional changes. Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h
index 6fa016c2..1a35a86a 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -48,9 +48,9 @@ struct bmc_platform {
struct platform_ocapi {
uint8_t i2c_engine; /* I2C engine number */
uint8_t i2c_port; /* I2C port number */
- uint32_t i2c_offset[3]; /* Offsets on I2C device */
- uint8_t i2c_odl0_data[3]; /* Data to reset ODL0 */
- uint8_t i2c_odl1_data[3]; /* Data to reset ODL1 */
+ uint8_t i2c_reset_addr; /* I2C address for reset */
+ uint8_t i2c_reset_odl0; /* I2C pin to write to reset ODL0 */
+ uint8_t i2c_reset_odl1; /* I2C pin to write to reset ODL1 */
uint8_t i2c_presence_addr; /* I2C address for presence detection */
uint8_t i2c_presence_odl0; /* I2C mask for detection on ODL0 */
uint8_t i2c_presence_odl1; /* I2C mask for detection on ODL1 */
OpenPOWER on IntegriCloud