summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/i2c/i2c.C4
-rw-r--r--src/usr/i2c/i2c_common.H5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C
index 1f2b8a095..f8583b8a1 100755
--- a/src/usr/i2c/i2c.C
+++ b/src/usr/i2c/i2c.C
@@ -688,7 +688,9 @@ bool i2cPresence( TARGETING::Target * i_target,
- //Set Host vs FSI switches
+ // Set I2C Mode (Host vs FSI) for the target
+ args.switches.useHostI2C = 0;
+ args.switches.useFsiI2C = 0;
i2cSetSwitches( i_target, args );
err = i2cSetBusVariables(i_target,
diff --git a/src/usr/i2c/i2c_common.H b/src/usr/i2c/i2c_common.H
index 68865a50d..1772ea2b2 100644
--- a/src/usr/i2c/i2c_common.H
+++ b/src/usr/i2c/i2c_common.H
@@ -75,7 +75,10 @@ struct misc_args_t
polling_interval_ns(0),
timeout_count(0),
offset_length(0),
- offset_buffer(NULL){};
+ offset_buffer(NULL)
+ {
+ memset(&switches, 0x0, sizeof(switches));
+ };
};
OpenPOWER on IntegriCloud