diff options
Diffstat (limited to 'zephyr/shim/src/i2c.c')
-rw-r--r-- | zephyr/shim/src/i2c.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/zephyr/shim/src/i2c.c b/zephyr/shim/src/i2c.c index 68dd212b1d..3dba7cde38 100644 --- a/zephyr/shim/src/i2c.c +++ b/zephyr/shim/src/i2c.c @@ -94,8 +94,12 @@ int i2c_get_port_from_remote_port(int remote_port) return port; } - /* Remote port is not defined, return -1 to signal the problem */ - return -1; + /* + * Remote port is not defined, return 1:1 mapping to support TCPC + * firmware updates, which always query the EC for the correct I2C + * port number. + */ + return remote_port; } int i2c_get_physical_port(int enum_port) |