From baa4156c71f40dc69c2f65d075e726054dba059d Mon Sep 17 00:00:00 2001 From: Frederic Barrat Date: Wed, 23 May 2018 19:25:42 +0200 Subject: 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 Reviewed-by: Andrew Donnellan Signed-off-by: Stewart Smith --- include/platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index 6fa016c..1a35a86 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 */ -- cgit v1.1