From f3de6cf48de8be0fe1ba208ce182f1730dec420e Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Wed, 25 Apr 2018 13:13:19 -0600 Subject: [PATCH] yorp: lower i2c speeds to 100kHz We need to tune the i2c parameters for the nuvoton chip on our yorp board to be able to operate at 400kHz. Currently we do not need the extra speed or bandwidth, so we are reverting to a lower speed where the default timing parameters work well. BRANCH=none BUG=b:78554726,b:78225299 TEST=HDMI over TypeC works on yorp This reverts commit 2e7e6665b1e712a950eef8ae3d3f64ae0f1d2ec1. Change-Id: Ic4ba1d5ef25661bd6c7f9490450af65b4e1393ad Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/1028752 Reviewed-by: Aaron Durbin --- board/yorp/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/yorp/board.c b/board/yorp/board.c index df34cad66b..d5608a2be4 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -121,8 +121,8 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); /* I2C port map. */ const struct i2c_port_t i2c_ports[] = { {"battery", I2C_PORT_BATTERY, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA}, - {"tcpc0", I2C_PORT_TCPC0, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, - {"tcpc1", I2C_PORT_TCPC1, 400, GPIO_I2C2_SCL, GPIO_I2C2_SDA}, + {"tcpc0", I2C_PORT_TCPC0, 100, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, + {"tcpc1", I2C_PORT_TCPC1, 100, GPIO_I2C2_SCL, GPIO_I2C2_SDA}, {"eeprom", I2C_PORT_EEPROM, 100, GPIO_I2C3_SCL, GPIO_I2C3_SDA}, {"charger", I2C_PORT_CHARGER, 100, GPIO_I2C4_SCL, GPIO_I2C4_SDA}, {"sensor", I2C_PORT_SENSOR, 100, GPIO_I2C7_SCL, GPIO_I2C7_SDA},