diff options
author | Jett Rink <jettrink@chromium.org> | 2018-01-11 13:18:44 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-11 19:37:40 -0800 |
commit | bdddd6fc1856b0ae1830cd693cf6f4f24bbbba1d (patch) | |
tree | b5a106024e67134bbfbc4803ffce94f16559a4cc /board | |
parent | b0630ce9f4bf891c8a09879dfedb88039b0cc0d3 (diff) | |
download | chrome-ec-bdddd6fc1856b0ae1830cd693cf6f4f24bbbba1d.tar.gz |
grunt: Lowering I2C bus speed to 400kHz for TCPC chips
The ANX3429QN-AA-R I2C bus cannot operate above 400kHz without
first setting register 0x3 to 0x48. We can just lower the bus
to 400kHz without having to set any registers and everything
works as expected.
BUG=b:71810830
BRANCH=none
TEST=Booted grunt with new firmware and p0 TCPC communicates
with EC successfully
Change-Id: I98e3c1a4844e1a79d23f8478fdf97ada72ad1c7d
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/862543
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/grunt/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/grunt/board.c b/board/grunt/board.c index ca7e772e07..8f03880128 100644 --- a/board/grunt/board.c +++ b/board/grunt/board.c @@ -120,8 +120,8 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); /* I2C port map. */ const struct i2c_port_t i2c_ports[] = { {"power", I2C_PORT_POWER, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA}, - {"tcpc0", I2C_PORT_TCPC0, 1000, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, - {"tcpc1", I2C_PORT_TCPC1, 1000, GPIO_I2C2_SCL, GPIO_I2C2_SDA}, + {"tcpc0", I2C_PORT_TCPC0, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, + {"tcpc1", I2C_PORT_TCPC1, 400, GPIO_I2C2_SCL, GPIO_I2C2_SDA}, {"thermal", I2C_PORT_THERMAL, 400, GPIO_I2C3_SCL, GPIO_I2C3_SDA}, {"sensor", I2C_PORT_SENSOR, 400, GPIO_I2C7_SCL, GPIO_I2C7_SDA}, }; |