summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c
diff options
context:
space:
mode:
authornagurram-in <nagendra.g@in.ibm.com>2017-03-16 09:14:53 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-03-27 13:52:39 -0400
commite3f96fd23f10df2c0a82b26ac0afa5708f8b28dc (patch)
tree4af48ef91a19e6a893de65e7f97cb84416fd69f2 /src/usr/i2c
parentaae922c1132fa71bd4ffb711296420755c7c0098 (diff)
downloadtalos-hostboot-e3f96fd23f10df2c0a82b26ac0afa5708f8b28dc.tar.gz
talos-hostboot-e3f96fd23f10df2c0a82b26ac0afa5708f8b28dc.zip
Enum value fix for HDAT i2c data.
Change-Id: Ie38e800a8f77d59d84f0d99e129c27cad3b38a16 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38053 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: Jayashankar Padath <jayashankar.padath@in.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-xsrc/usr/i2c/i2c.C6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C
index 850e5c2fc..2227c8be2 100755
--- a/src/usr/i2c/i2c.C
+++ b/src/usr/i2c/i2c.C
@@ -3846,7 +3846,7 @@ void getDeviceInfo( TARGETING::Target* i_i2cMaster,
l_currentDI.masterPort = l_eep->port;
l_currentDI.addr = l_eep->devAddr;
l_currentDI.slavePort = 0xFF;
- l_currentDI.busFreqKhz = (l_eep->busFreq) * 1000;
+ l_currentDI.busFreqKhz = (l_eep->busFreq) / 1000;
l_currentDI.deviceType = TARGETING::HDAT_I2C_DEVICE_TYPE_SEEPROM;
switch(l_eep->device)
{
@@ -3906,7 +3906,7 @@ void getDeviceInfo( TARGETING::Target* i_i2cMaster,
l_currentDI.masterPort = tpmInfo.port;
l_currentDI.addr = tpmInfo.devAddr;
l_currentDI.slavePort = 0xFF;
- l_currentDI.busFreqKhz = (tpmInfo.busFreq) * 1000;
+ l_currentDI.busFreqKhz = (tpmInfo.busFreq) / 1000;
l_currentDI.deviceType =
TARGETING::HDAT_I2C_DEVICE_TYPE_NUVOTON_TPM;
l_currentDI.devicePurpose = TARGETING::HDAT_I2C_DEVICE_PURPOSE_TPM;
@@ -3979,7 +3979,7 @@ void getDeviceInfo( TARGETING::Target* i_i2cMaster,
l_currentDevice.masterPort = l_i2cMasterPort[l_idx];
l_currentDevice.addr = l_i2cAddr[l_idx];
l_currentDevice.slavePort = l_i2cSlavePort[l_idx];
- l_currentDevice.busFreqKhz = l_i2cBusFreq[l_idx] * 1000;
+ l_currentDevice.busFreqKhz = l_i2cBusFreq[l_idx] / 1000;
l_currentDevice.deviceType = l_i2cDevType[l_idx];
l_currentDevice.devicePurpose = l_i2cDevPurpose[l_idx];
OpenPOWER on IntegriCloud