diff options
author | Mike Baiocchi <baiocchi@us.ibm.com> | 2015-05-28 12:27:03 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-07-02 12:47:31 -0500 |
commit | c622ec4329edb2feaa1e36d91fcfa3989a7bfda3 (patch) | |
tree | 85e5c00afa7063daab258c3bdf13035e47de2467 /src/usr/i2c | |
parent | 8aae2667d09f9157ebe871793ca244b866dea178 (diff) | |
download | talos-hostboot-c622ec4329edb2feaa1e36d91fcfa3989a7bfda3.tar.gz talos-hostboot-c622ec4329edb2feaa1e36d91fcfa3989a7bfda3.zip |
Remove engine1 from the I2C Master list for Centaur in devtree
While the processor and centaur I2C code is common, the centaur only
has one I2c master/engine (engine 0), where as the processor has two.
This commit removes engine 1 from the I2C Master list for Centaurs
in the devtree.
Change-Id: Icd4da919a126372949d30aa4b07d7b87ecf151d4
RTC: 129126
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18046
Tested-by: Jenkins Server
Reviewed-by: William H. Schwartz <whs@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-x | src/usr/i2c/i2c.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C index 76d9c6444..eaac4b1c1 100755 --- a/src/usr/i2c/i2c.C +++ b/src/usr/i2c/i2c.C @@ -3135,10 +3135,18 @@ void getMasterInfo( const TARGETING::Target* i_chip, std::list<MasterInfo_t>& o_info ) { TRACDCOMP(g_trac_i2c,"getMasterInfo(%.8X)",TARGETING::get_huid(i_chip)); + TARGETING::TYPE l_type = i_chip->getAttr<TARGETING::ATTR_TYPE>(); for( uint32_t engine = 0; engine < I2C_BUS_ATTR_MAX_ENGINE; engine++ ) { + // Only support engine 0 for centaur + if ( ( engine != 0 ) && + ( l_type == TARGETING::TYPE_MEMBUF ) ) + { + continue; + } + MasterInfo_t info; info.scomAddr = 0x000A0000 + engine*0x20; info.engine = engine; @@ -3147,6 +3155,8 @@ void getMasterInfo( const TARGETING::Target* i_chip, // Local Bus = PIB_CLK / 4 info.freq = info.freq/16; //convert nest to local bus + TRACDCOMP(g_trac_i2c,"getMasterInfo(%.8X): pushing back engine=%d, scomAddr=0x%X",TARGETING::get_huid(i_chip), engine, info.scomAddr); + o_info.push_back(info); } } |