From a92f91459eb2a1c197e4f15d7341f1f501b89079 Mon Sep 17 00:00:00 2001 From: Roland Veloz Date: Fri, 31 Aug 2018 04:35:33 -0500 Subject: Added the I2C MUX attribute and target definitions - Defined the I2C_MUX_INFO attribute - Defined the i2c_mux target with I2C_MUX_INFO as an attribute - Defined the i2c_mux target to have parent 'chip' - Added attribute fields i2cMuxSelector and i2cMuxPath to attributes EEPROM_NV_INFO, EEPROM_SBE_BACKUP_INFO, EEPROM_SBE_PRIMARY_INFO, EEPROM_VPD_BACKUP_INFO, EEPROM_VPD_PRIMARY_INFO, FAPI_I2C_CONTROL_INFO, TEMP_SENSOR_I2C_CONFIG and TPM_INFO. All these had I2C info in them (i2cMasterPath, port, devAddr, engine, etc). RTC:196807 CMVC-Prereq:1068716 Change-Id: Iadf4909411329c8b7b961efc2cb0789f5b96a49f Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65540 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- .../targeting/common/xmltohb/attribute_types.xml | 215 ++++++++++++++++++++- 1 file changed, 206 insertions(+), 9 deletions(-) mode change 100755 => 100644 src/usr/targeting/common/xmltohb/attribute_types.xml (limited to 'src/usr/targeting/common/xmltohb/attribute_types.xml') diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml old mode 100755 new mode 100644 index 6b0c2acdd..5250b2b05 --- a/src/usr/targeting/common/xmltohb/attribute_types.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types.xml @@ -959,6 +959,24 @@ uint64_t 0x05 + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + non-volatile @@ -1033,6 +1051,24 @@ writeCycleTime uint64_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + Information needed to address the EERPROM slaves EEPROM_SBE_BACKUP_INFO @@ -1109,6 +1145,24 @@ writeCycleTime uint64_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + Information needed to address the EERPROM slaves EEPROM_SBE_PRIMARY_INFO @@ -1185,6 +1239,24 @@ writeCycleTime uint64_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + Information needed to address the EERPROM slaves EEPROM_VPD_BACKUP_INFO @@ -1268,6 +1340,24 @@ writeCycleTime uint64_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + Information needed to address the EEPROM slaves EEPROM_VPD_PRIMARY_INFO @@ -1295,8 +1385,8 @@ - EFF_DRAM_COLS + Number of DRAM columns. Initialized and used by HWPs. @@ -1307,8 +1397,8 @@ - EFF_DRAM_ROWS + Number of DRAM rows. Initialized and used by HWPs. @@ -1455,6 +1545,24 @@ devAddr uint8_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + non-volatile @@ -1621,6 +1729,7 @@ + FREQ_PROC_REFCLOCK @@ -2016,8 +2125,8 @@ 0xA - NVLINK + 0xB @@ -2056,13 +2165,13 @@ 0x1 - 955X + 0x1 - SEEPROM + 0x2 @@ -2082,8 +2191,8 @@ 0x5 - NVLINK + 0x6 @@ -2396,6 +2505,51 @@ + + + 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 @@ -2774,6 +2928,7 @@ + MAX_DMI_PER_PROC @@ -3172,7 +3327,6 @@ - 0x4000000000000 @@ -3689,6 +3843,9 @@ AST2500 + + PCA9847 + MODEL @@ -6068,8 +6225,8 @@ - non-volatile + @@ -6979,6 +7136,24 @@ devAddr uint8_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + Information needed to address an I2C slave device TEMP_SENSOR_I2C_CONFIG @@ -7255,6 +7430,24 @@ byteAddrOffset uint8_t + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + Information needed to address the TPM slaves TPM_INFO @@ -7624,9 +7817,13 @@ 76 - LAST_IN_RANGE + I2C_MUX 77 + + LAST_IN_RANGE + 78 + TYPE -- cgit v1.2.1