diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2016-03-29 18:24:24 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-17 12:23:07 -0700 |
commit | b10d12f1c95fa6c13c83f1da34bbaf21063d9a2b (patch) | |
tree | 659475bc971d23fec0fa5d9b671b645f8588a49c /board/strago/board.c | |
parent | 096dec1adba5928fdff6c0d0b47d51545580a268 (diff) | |
download | chrome-ec-b10d12f1c95fa6c13c83f1da34bbaf21063d9a2b.tar.gz |
tcpm: update code to support multiple tcpm driver
BUG=chromium:593822
BRANCH=none
TEST=make buildall
Change-Id: Ic30c1b890da7639aa80a53040ecc5bebfb4be2e8
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/336030
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/strago/board.c')
-rw-r--r-- | board/strago/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/strago/board.c b/board/strago/board.c index fb40fb9a18..32ca7aa4a8 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -15,6 +15,7 @@ #include "driver/accel_kionix.h" #include "driver/accel_kxcj9.h" #include "driver/als_isl29035.h" +#include "driver/tcpm/tcpci.h" #include "driver/temp_sensor/tmp432.h" #include "extpower.h" #include "gpio.h" @@ -105,7 +106,7 @@ const struct i2c_port_t i2c_ports[] = { const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { - {I2C_PORT_TCPC, CONFIG_TCPC_I2C_BASE_ADDR}, + {I2C_PORT_TCPC, CONFIG_TCPC_I2C_BASE_ADDR, &tcpci_tcpm_drv}, }; /* SPI master ports */ |