summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-07-28 10:46:18 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-12 21:17:36 -0400
commit64c5f756d00f902ce974306c783cd4f1464b3159 (patch)
treeb89a509a2e083f0ae45f581ac8dde2c5caac531b /src/include
parent42ecd455ada336844fe97f710250813e0d47b08f (diff)
downloadtalos-hostboot-64c5f756d00f902ce974306c783cd4f1464b3159.tar.gz
talos-hostboot-64c5f756d00f902ce974306c783cd4f1464b3159.zip
Hostboot HDAT: update to match section 19 in HDAT spec
Add new i2cLabel string Change-Id: I007441e3973a16eaae4dbdbe703297f0f6978c8f RTC: 176759 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44301 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/i2c/i2cif.H22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H
index c0bee8be2..583eb5083 100644
--- a/src/include/usr/i2c/i2cif.H
+++ b/src/include/usr/i2c/i2cif.H
@@ -204,18 +204,6 @@ errlHndl_t i2cEnableSensorCache( TARGETING::Target * i_target );
#endif //__HOSTBOOT_RUNTIME
-/**
- * Enumeration that defines possible I2C device types
- */
-enum DeviceType_t
-{
- DEVTYPE_955x = 0x01,
- DEVTYPE_SEEPROM = 0x02,
- DEVTYPE_NUVOTON_TPM = 0x03,
- DEVTYPE_MEX_FPGA = 0x04,
- DEVTYPE_UCX90XX = 0x05,
- DEVTYPE_UNKNOWN = 0xFF,
-};
/**
* Structure to return I2C information in
@@ -225,13 +213,19 @@ struct DeviceInfo_t
TARGETING::Target* masterChip; //< I2C Master Chip
uint8_t engine; //< I2C engine (relative to master chip)
uint8_t masterPort; //< I2C port (relative to engine)
- uint8_t deviceType; //< Slave device Type (from enum)
+ TARGETING::HDAT_I2C_DEVICE_TYPE deviceType; //< Slave device Type
uint8_t addr; //< I2C Slave device address (relative to port)
uint8_t slavePort; //< I2C Slave Port. 0xFF if N/A
uint16_t busFreqKhz; //< Bus speed in KHz
- uint8_t devicePurpose; //< Slave device purpose (from enum)
+ TARGETING::HDAT_I2C_DEVICE_PURPOSE devicePurpose; //< Slave device purpose
TARGETING::ATTR_ORDINAL_ID_type assocNode; //< Upstream node's ordinal ID
TARGETING::ATTR_POSITION_type assocProc; //< Upstream proc's position
+
+ // describes i2c device, null-terminated string
+ // SEEPROMS: <vendor>,<device type>,<data type>,<hw subsystem>
+ // GPIO expanders: <vendor>,<device type>,<domain>,<purpose>
+ // TPM: <vendor>,<device type>,<purpose>,<scope>
+ char deviceLabel[64];
};
/**
OpenPOWER on IntegriCloud