diff options
author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2019-06-25 16:17:46 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-06-28 15:18:44 -0500 |
commit | ca9007fb2efce09d6bdaf85615e585c524414fab (patch) | |
tree | a80192e2c98fd84cef58be5a5398d38d31c36d7f /src/usr/i2c | |
parent | 20423884e4869fd45dd17e5ceca6d4ebe2d84f7d (diff) | |
download | talos-hostboot-ca9007fb2efce09d6bdaf85615e585c524414fab.tar.gz talos-hostboot-ca9007fb2efce09d6bdaf85615e585c524414fab.zip |
Add Support for new HDAT Slave Device Type for Nuvoton 75x
The new HDAT spec added a new 'TCG_i2c_TPM' Slave Device Type for the
Host I2C Device Entry Structure. This commit adds the use of it for
Nuvoton 75x support.
Change-Id: I01f75c919f255786e5b32dcde9b86b2e15d33986
RTC:204133
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/79527
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>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-x | src/usr/i2c/i2c.C | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C index 8be749230..bf0560e73 100755 --- a/src/usr/i2c/i2c.C +++ b/src/usr/i2c/i2c.C @@ -5499,20 +5499,21 @@ void getDeviceInfo( TARGETING::Target* i_i2cMaster, l_currentDI.slavePort = 0xFF; l_currentDI.busFreqKhz = (tpmInfo.busFreq) / FREQ_CONVERSION::HZ_PER_KHZ; - l_currentDI.deviceType = - TARGETING::HDAT_I2C_DEVICE_TYPE_NUVOTON_TPM; l_currentDI.devicePurpose = TARGETING::HDAT_I2C_DEVICE_PURPOSE_TPM; - - // Read TPM Model attribute to determine the label + // Read TPM Model attribute to determine some values if (tpmInfo.model == TPMDD::TPM_MODEL_65x) { strcpy(l_currentDI.deviceLabel,"?nuvoton,npct601,tpm,host"); + l_currentDI.deviceType = + TARGETING::HDAT_I2C_DEVICE_TYPE_NUVOTON_TPM; } else if (tpmInfo.model == TPMDD::TPM_MODEL_75x) { strcpy(l_currentDI.deviceLabel,"?tcg,tpm_i2c_ptp,tpm,host"); + l_currentDI.deviceType = + TARGETING::HDAT_I2C_DEVICE_TYPE_TCG_I2C_TPM; } else { |