summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c/i2c.C
diff options
context:
space:
mode:
authorMike Baiocchi <baiocchi@us.ibm.com>2015-04-09 18:20:57 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-04-14 13:15:57 -0500
commit9e3254ae0108bfac9d8eb8b37c0545aa35aa74c6 (patch)
tree4df8015d455faff8ebe0742d76a09ee3f218f8e0 /src/usr/i2c/i2c.C
parente23846636f500ce5cdb16c8c66b87b76c77b5e4a (diff)
downloadtalos-hostboot-9e3254ae0108bfac9d8eb8b37c0545aa35aa74c6.tar.gz
talos-hostboot-9e3254ae0108bfac9d8eb8b37c0545aa35aa74c6.zip
Set All I2C Master Engine Mode Registers For PHYP
Previously, Hostboot code was only setting the I2C Master Engine mode registers if hostboot thought that there was a device off of at least one of the ports connected to the master/engine. This commit now sets all of the mode registers (master engines 0 and 1) for all of the processors in the system. Change-Id: I1371fb12f44c675b076d2e094e6513f74aff5856 CQ: SW302964 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16995 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/i2c/i2c.C')
-rwxr-xr-xsrc/usr/i2c/i2c.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C
index cbb583412..b7a68381d 100755
--- a/src/usr/i2c/i2c.C
+++ b/src/usr/i2c/i2c.C
@@ -2633,6 +2633,14 @@ errlHndl_t i2cProcessActiveMasters ( i2cProcessType i_processType,
}
}
+ // PHYP wants all of the engines set regardless if hostboot
+ // believes there is a device on the bus.
+ if ( i_processOperation == I2C_OP_SETUP )
+ {
+ skip = false;
+ io_args.port = 0;
+ }
+
if ( skip == true )
{
TRACUCOMP( g_trac_i2c,INFO_MRK
@@ -2736,6 +2744,7 @@ errlHndl_t i2cProcessActiveMasters ( i2cProcessType i_processType,
case I2C_OP_SETUP:
{
mode_reg_t mode;
+ mode.value = 0x0;
TRACFCOMP( g_trac_i2c,INFO_MRK
"i2cProcessActiveMasters: setup engine: %d",
OpenPOWER on IntegriCloud