Implement Silicom card features #1
2 changed files with 4 additions and 2 deletions
|
@ -2324,7 +2324,9 @@ fm_status fmPlatformSwitchInserted(fm_int sw)
|
|||
libFunc = FM_PLAT_GET_LIB_FUNCS_PTR(sw);
|
||||
if ( libFunc->InitSwitch )
|
||||
{
|
||||
TAKE_PLAT_I2C_BUS_LOCK(sw);
|
||||
status = libFunc->InitSwitch(swCfg->swNum);
|
||||
DROP_PLAT_I2C_BUS_LOCK(sw);
|
||||
FM_LOG_EXIT_ON_ERR(FM_LOG_CAT_PLATFORM, status);
|
||||
}
|
||||
|
||||
|
|
|
@ -1320,7 +1320,7 @@ static fm_status SwitchI2cWriteRead(fm_uintptr handle,
|
|||
i2c = &hwCfg.i2c[sw];
|
||||
|
||||
/* Read chip version: FM10000_CHIP_VERSION => register: 0x452 */
|
||||
status = fmReadUINT32(sw, 0x452, &rv);
|
||||
status = fmReadUINT32(sw, FM10000_CHIP_VERSION(), &rv);
|
||||
if (status == FM_OK)
|
||||
{
|
||||
i2c->chipVersion = rv & 0x7F;
|
||||
|
@ -1361,7 +1361,7 @@ static fm_status SwitchI2cWriteRead(fm_uintptr handle,
|
|||
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (device != 0x8) // specifically VRM_IR device from Silicom patch
|
||||
{
|
||||
FM_LOG_ERROR(FM_LOG_CAT_PLATFORM,
|
||||
"I2C error accessing device 0x%x via switch %d: %s\n",
|
||||
|
|
Loading…
Reference in a new issue