From 83b48a52ef2b6645494d6b770f946a6b4da18bb8 Mon Sep 17 00:00:00 2001 From: Divya Jyothi Date: Fri, 24 Apr 2015 17:29:19 -0700 Subject: Strago: enabled I2c wedge functionality on all i2c ports BUG=chrome-os-partner:39400 BRANCH=None TEST=make -j buildall Change-Id: Iba2ce1395e1f8e662db4888e3cec79d5e4bbce82 Signed-off-by: Divya Jyothi Reviewed-on: https://chromium-review.googlesource.com/267470 Reviewed-by: Shawn N --- board/strago/board.c | 12 ++++++++---- board/strago/gpio.inc | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/board/strago/board.c b/board/strago/board.c index 359716266b..f7017dbf17 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -53,10 +53,14 @@ const struct power_signal_info power_signal_list[] = { BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); const struct i2c_port_t i2c_ports[] = { - {"batt_chg", MEC1322_I2C0_0, 100}, - {"sensors", MEC1322_I2C1, 100}, - {"pd_mcu", MEC1322_I2C2, 100}, - {"thermal", MEC1322_I2C3, 100} + {"batt_chg", MEC1322_I2C0_0, 100, + GPIO_I2C_PORT0_SCL, GPIO_I2C_PORT0_SDA}, + {"sensors", MEC1322_I2C1, 100, + GPIO_I2C_PORT1_SCL, GPIO_I2C_PORT1_SDA}, + {"pd_mcu", MEC1322_I2C2, 100, + GPIO_I2C_PORT2_SCL, GPIO_I2C_PORT2_SDA}, + {"thermal", MEC1322_I2C3, 100, + GPIO_I2C_PORT3_SCL, GPIO_I2C_PORT3_SDA} }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); diff --git a/board/strago/gpio.inc b/board/strago/gpio.inc index a99a4783ad..934a087f09 100644 --- a/board/strago/gpio.inc +++ b/board/strago/gpio.inc @@ -22,6 +22,10 @@ GPIO(I2C_PORT0_SDA, PORT(1), 6, GPIO_ODR_HIGH) GPIO(BOARD_ID2, PORT(1), 7, GPIO_INPUT | GPIO_PULL_UP) /* NC */ GPIO(I2C_PORT1_SCL, PORT(2), 2, GPIO_ODR_HIGH) GPIO(I2C_PORT1_SDA, PORT(2), 3, GPIO_ODR_HIGH) +GPIO(I2C_PORT2_SCL, PORT(2), 0, GPIO_ODR_HIGH) +GPIO(I2C_PORT2_SDA, PORT(2), 1, GPIO_ODR_HIGH) +GPIO(I2C_PORT3_SCL, PORT(2), 4, GPIO_ODR_HIGH) +GPIO(I2C_PORT3_SDA, PORT(2), 5, GPIO_ODR_HIGH) GPIO(PCH_SCI_L, PORT(2), 6, GPIO_ODR_HIGH) /* SCI output */ -- cgit v1.2.1