From fd94eaab5b2f7b76151245f6db0bd20782deed2e Mon Sep 17 00:00:00 2001 From: Roland Veloz Date: Wed, 26 Dec 2018 19:04:12 -0600 Subject: Replace attribute I2C_MUX_INFO with attribute FAPI_I2C_CONTROL_INFO -- Just removed all instances of I2C_MUX_INFO and replaced with FAPI_I2C_CONTROL_INFO if not already there. Change-Id: Ie161abb25ef75b632d6c429fb247ccbd04eb2135 RTC: 203024 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70022 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E. Bofferding Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/usr/i2c/i2c.C | 6 +-- .../targeting/common/xmltohb/attribute_types.xml | 45 --------------------- .../common/xmltohb/simics_AXONE.system.xml | 11 +----- .../common/xmltohb/simics_CUMULUS.system.xml | 46 +--------------------- src/usr/targeting/common/xmltohb/target_types.xml | 3 -- src/usr/targeting/test/testtargeting.H | 6 +-- 6 files changed, 8 insertions(+), 109 deletions(-) (limited to 'src') diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C index e74d9ecd4..bba2910c0 100755 --- a/src/usr/i2c/i2c.C +++ b/src/usr/i2c/i2c.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2018 */ +/* Contributors Listed Below - COPYRIGHT 2011,2019 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -1053,9 +1053,9 @@ errlHndl_t i2cAccessMux( TARGETING::TargetHandle_t i_masterTarget, break; } - TARGETING::I2cMuxInfo l_muxData; + TARGETING::FapiI2cControlInfo l_muxData; - if (! (l_i2cMuxTarget->tryGetAttr(l_muxData)) ) + if (! (l_i2cMuxTarget->tryGetAttr(l_muxData)) ) { TRACFCOMP(g_trac_i2c, "i2cAccessMux(): get attributes failed"); diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml index 5f4edae76..eb281a157 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types.xml @@ -2491,51 +2491,6 @@ - - - Structure to define the addressing for - an I2C mux target. - - - - physical:sys-0 - Entity path to the chip that contains the I2C - master. - i2cMasterPath - EntityPath - - - - 0x00 - Port from the I2C Master device. This is a - 6-bit value. - port - uint8_t - - - - 0x00 - Device address on the I2C bus. This is a 7-bit - value, but then shifted 1 bit left. - devAddr - uint8_t - - - - 0x00 - I2C master engine. This is a 2-bit value. - engine - uint8_t - - - Information used to control a specific i2c mux device, - to select a particular target bus. - I2C_MUX_INFO - non-volatile - - - Structure which defines which I2C access method to use at diff --git a/src/usr/targeting/common/xmltohb/simics_AXONE.system.xml b/src/usr/targeting/common/xmltohb/simics_AXONE.system.xml index 46dea6902..b31183488 100644 --- a/src/usr/targeting/common/xmltohb/simics_AXONE.system.xml +++ b/src/usr/targeting/common/xmltohb/simics_AXONE.system.xml @@ -13302,7 +13302,7 @@ NA - I2C_MUX_INFO + FAPI_I2C_CONTROL_INFO i2cMasterPathphysical:sys-0/node-0/proc-0 port0 @@ -13310,15 +13310,6 @@ engine3 - - FAPI_I2C_CONTROL_INFO - - i2cMasterPathphysical:sys-0/node-0/proc-0 - port0 - devAddr0xE0 - engine3 - - diff --git a/src/usr/targeting/common/xmltohb/simics_CUMULUS.system.xml b/src/usr/targeting/common/xmltohb/simics_CUMULUS.system.xml index 2a9c82f72..f776c3aac 100644 --- a/src/usr/targeting/common/xmltohb/simics_CUMULUS.system.xml +++ b/src/usr/targeting/common/xmltohb/simics_CUMULUS.system.xml @@ -5,7 +5,7 @@ - + @@ -13635,48 +13635,4 @@ - - - sys0node0i2cmux0 - i2c_mux_pca9847 - - HUID - 0x004D0000 - - - PHYS_PATH - physical:sys-0/node-0/i2c_mux-0 - - - AFFINITY_PATH - affinity:sys-0/node-0/proc-0/i2c_mux-0 - - - PRIMARY_CAPABILITIES - - reserved0 - supportsFsiScom0 - supportsInbandScom0 - supportsXscom0 - - - - ORDINAL_ID - 0 - - - FAPI_NAME - NA - - - I2C_MUX_INFO - - i2cMasterPathphysical:sys-0/node-0/proc-0 - port4 - devAddr0xA0 - engine2 - - - - diff --git a/src/usr/targeting/common/xmltohb/target_types.xml b/src/usr/targeting/common/xmltohb/target_types.xml index b182cf676..1189f9954 100644 --- a/src/usr/targeting/common/xmltohb/target_types.xml +++ b/src/usr/targeting/common/xmltohb/target_types.xml @@ -972,9 +972,6 @@ FAPI_I2C_CONTROL_INFO - - I2C_MUX_INFO - MODEL PCA9847 diff --git a/src/usr/targeting/test/testtargeting.H b/src/usr/targeting/test/testtargeting.H index 16d2fc99d..1e4792831 100644 --- a/src/usr/targeting/test/testtargeting.H +++ b/src/usr/targeting/test/testtargeting.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2018 */ +/* Contributors Listed Below - COPYRIGHT 2012,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -605,8 +605,8 @@ class TargetingTestSuite : public CxxTest::TestSuite TARGETING::TYPE_I2C_MUX); } - TARGETING::I2cMuxInfo l_i2cMuxInfo = - l_targetList->getAttr(); + TARGETING::FapiI2cControlInfo l_i2cMuxInfo = + l_targetList->getAttr(); if (TARGETING::EntityPath::PATH_PHYSICAL != l_i2cMuxInfo.i2cMasterPath.type()) -- cgit v1.2.3