summaryrefslogtreecommitdiffstats
path: root/src/include/usr/i2c
diff options
context:
space:
mode:
authorRoland Veloz <rveloz@us.ibm.com>2019-01-28 14:40:14 -0600
committerChristian R. Geddes <crgeddes@us.ibm.com>2019-01-30 10:27:15 -0600
commit602885b3880d2f0368e526e9764494752384079d (patch)
treeee0c1f660e373ab5f8b6ece83f1dfd792fe886b7 /src/include/usr/i2c
parent5408943391159d995172b62809ffe3da1d9356d3 (diff)
downloadtalos-hostboot-602885b3880d2f0368e526e9764494752384079d.tar.gz
talos-hostboot-602885b3880d2f0368e526e9764494752384079d.zip
Set the I2C MUX bus selector in the i2cPresence function
- Expanded the i2cPresence API to take in the I2C MUX bus selector and the I2C MUX path. This will facilitate setting the bus selector within the i2cPresence function. - Set the I2C MUX bus selector in the i2cPresence function via the call to i2cAccessMux. - Simplified the i2cAccessMux API. It only takes in what it really uses. - Added several dump utility functions that are strictly there to dump certain data structures on an as needed basis. Was useful to have these utilities to see certain data structures but does not slow down the run time because the user must explicitly call them. - The structures that can get dumped are TARGETING::EepromVpdPrimaryInfo, eeprom_addr_t, TARGETING::FapiI2cControlInfo and I2C::misc_args_t. Change-Id: I14943687a934bfb21bc5cf3db0540b7e629a6257 RTC:203596 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71011 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r--src/include/usr/i2c/i2cif.H10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H
index 4d9aa2ef0..c97c6ea6d 100644
--- a/src/include/usr/i2c/i2cif.H
+++ b/src/include/usr/i2c/i2cif.H
@@ -167,13 +167,17 @@ errlHndl_t i2cSetupActiveMasters ( i2cProcessType i_setupType,
* @param[in] i_port - The device's port
* @param[in] i_engine - The device's engine number
* @param[in] i_devAddr - The device's address
+ * @param[in] i_i2cMuxBusSelector - The Selector for the I2C MUX
+ * @param[in] i_i2cMuxPath - The entity path to the I2C MUX
*
* @return bool - True if chip is present, False otherwise.
*/
bool i2cPresence( TARGETING::Target * i_target,
- uint64_t i_port,
- uint64_t i_engine,
- uint64_t i_devAddr );
+ uint64_t i_port,
+ uint64_t i_engine,
+ uint64_t i_devAddr,
+ uint8_t i_i2cMuxBusSelector,
+ const TARGETING::EntityPath & i_i2cMuxPath );
/**
OpenPOWER on IntegriCloud