Skip to content

Commit

Permalink
Set MUX i2c slave port to be 1
Browse files Browse the repository at this point in the history
The i2c controller info attribute for the I2C Mux target had the
port information set incorrectly. This commit addresses that and
adds a debug trace that was helpful in figuring out this issue

Change-Id: I34b5c920e8fe4f0f0ea68ce5aaf268095aab9886
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74864
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
  • Loading branch information
crgeddes committed Mar 22, 2019
1 parent 27d7ab8 commit b8cfbb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/usr/i2c/i2c.C
Original file line number Diff line number Diff line change
Expand Up @@ -4962,6 +4962,9 @@ errlHndl_t i2cRegisterOp ( DeviceFW::OperationType i_opType,
(i_args.engine * P9_ENGINE_SCOM_OFFSET);
op_size=8;

TRACUCOMP( g_trac_i2c,
"i2cRegisterOp() op_addr: 0x%lx io_data_64: 0x%lx",op_addr, *io_data_64 );

err = DeviceFW::deviceOp( i_opType,
i_target,
io_data_64,
Expand Down
2 changes: 1 addition & 1 deletion src/usr/targeting/common/xmltohb/simics_AXONE.system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13521,7 +13521,7 @@
<id>FAPI_I2C_CONTROL_INFO</id>
<default>
<field><id>i2cMasterPath</id><value>physical:sys-0/node-0/proc-0</value></field>
<field><id>port</id><value>0</value></field>
<field><id>port</id><value>1</value></field>
<field><id>devAddr</id><value>0xE0</value></field>
<field><id>engine</id><value>3</value></field>
</default>
Expand Down

0 comments on commit b8cfbb2

Please sign in to comment.