From 9e3254ae0108bfac9d8eb8b37c0545aa35aa74c6 Mon Sep 17 00:00:00 2001 From: Mike Baiocchi Date: Thu, 9 Apr 2015 18:20:57 -0500 Subject: 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 Reviewed-by: WILLIAM G. HOFFA Reviewed-by: STEPHEN M. CPREK Reviewed-by: A. Patrick Williams III --- src/usr/i2c/i2c.C | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/usr/i2c/i2c.C') 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", -- cgit v1.2.1