diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2015-11-13 13:22:08 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-17 14:40:11 -0800 |
commit | 2d57e6f6d98a06abd55e193b6f5d193280f01988 (patch) | |
tree | da2f987db591740793b8c4f40fe82fdbb5724a35 /board/kunimitsu/board.c | |
parent | fca995376eb763ee58252faae26b2a38d887685b (diff) | |
download | chrome-ec-2d57e6f6d98a06abd55e193b6f5d193280f01988.tar.gz |
kunimitsu: update for fab 4
update gpio and i2c mapping based on fab 4 hardware
BUG=none
BRANCH=none
TEST=verified image can boot on kunimitsu fab 4 (build w/ undef fab 3 flag)
Change-Id: I3acb2fc57eaff73d1b1b1bc7f41c76035ccdd81a
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/312559
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/kunimitsu/board.c')
-rw-r--r-- | board/kunimitsu/board.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/board/kunimitsu/board.c b/board/kunimitsu/board.c index c960cb263e..392d4513d4 100644 --- a/board/kunimitsu/board.c +++ b/board/kunimitsu/board.c @@ -50,7 +50,6 @@ #define GPIO_KB_INPUT (GPIO_INPUT | GPIO_PULL_UP) #define GPIO_KB_OUTPUT (GPIO_ODR_HIGH) -#define GPIO_KB_OUTPUT_COL2 (GPIO_OUT_LOW) #define TPS650830_I2C_ADDR TPS650830_I2C_ADDR1 @@ -115,11 +114,19 @@ const struct adc_t adc_channels[] = { BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); const struct i2c_port_t i2c_ports[] = { +#ifdef BOARD_KUNIMITSU_V3 {"batt", MEC1322_I2C0_0, 100, GPIO_I2C0_0_SCL, GPIO_I2C0_0_SDA}, {"muxes", MEC1322_I2C0_1, 100, GPIO_I2C0_1_SCL, GPIO_I2C0_1_SDA}, {"pd_mcu", MEC1322_I2C1, 500, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, {"sensors", MEC1322_I2C2, 400, GPIO_I2C2_SCL, GPIO_I2C2_SDA }, {"pmic", MEC1322_I2C3, 400, GPIO_I2C3_SCL, GPIO_I2C3_SDA }, +#else + {"pmic", MEC1322_I2C0_0, 400, GPIO_I2C0_0_SCL, GPIO_I2C0_0_SDA}, + {"muxes", MEC1322_I2C0_1, 400, GPIO_I2C0_1_SCL, GPIO_I2C0_1_SDA}, + {"pd_mcu", MEC1322_I2C1, 500, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, + {"sensors", MEC1322_I2C2, 400, GPIO_I2C2_SCL, GPIO_I2C2_SDA }, + {"batt", MEC1322_I2C3, 100, GPIO_I2C3_SCL, GPIO_I2C3_SDA }, +#endif /* BOARD_KUNIMITSU_V3 */ }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); |