summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c/test
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2015-02-04 07:55:01 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-12 10:43:52 -0600
commit02e8cfeafe60b5937a01d994d1dc25ec165eeece (patch)
tree1c4f82a768230681ac9a3e0d47f414fd0b045e95 /src/usr/i2c/test
parent3eb0fabc51df77382919c3d24b0f38b8f4eb8051 (diff)
downloadtalos-hostboot-02e8cfeafe60b5937a01d994d1dc25ec165eeece.tar.gz
talos-hostboot-02e8cfeafe60b5937a01d994d1dc25ec165eeece.zip
Update i2cSetupMasters() to support different inputs
Update i2cSetupMasters similar to i2cResetActiveMasters to accept a parameter to select procs and/or mem buffs and host and/or fsi engines. Change-Id: I943248e01acd3254acf5635a284a05c827645123 RTC: 115834 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15552 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/i2c/test')
-rwxr-xr-xsrc/usr/i2c/test/i2ctest.H13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/usr/i2c/test/i2ctest.H b/src/usr/i2c/test/i2ctest.H
index 77470033e..d4bd8a9f2 100755
--- a/src/usr/i2c/test/i2ctest.H
+++ b/src/usr/i2c/test/i2ctest.H
@@ -631,32 +631,31 @@ class I2CTest: public CxxTest::TestSuite
* needed by PHYP to ensure that the I2C masters are
* setup correctly on the system.
*/
- void testI2CSetupMasters ( void )
+ void testI2CSetupActiveMasters ( void )
{
errlHndl_t err = NULL;
int fails = 0;
const int NUM_CMDS = 1;
TRACFCOMP( g_trac_i2c,
- "testI2CSetupMasters - Start" );
+ "testI2CSetupActiveMasters - Start" );
- err = I2C::i2cSetupMasters();
+ err = I2C::i2cSetupActiveMasters(I2C::I2C_PROC_ALL);
if( err )
{
- TS_FAIL( "testI2CSetupMasters - Error returned from "
- "i2cSetupMasters()");
+ TS_FAIL( "testI2CSetupActiveMasters - Error returned from "
+ "i2cSetupActiveMasters(I2C_PROC_ALL)");
fails++;
delete err;
}
TRACFCOMP( g_trac_i2c,
- "testI2CSetupMasters - End: %d/%d fails",
+ "testI2CSetupActiveMasters - End: %d/%d fails",
fails, NUM_CMDS );
}
-
/**
* @brief Call I2C Set Bus Variables and related functions
*
OpenPOWER on IntegriCloud