summaryrefslogtreecommitdiff
path: root/board/glados
diff options
context:
space:
mode:
authorKevin K Wong <kevin.k.wong@intel.com>2016-03-29 18:24:24 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-04-17 12:23:07 -0700
commitb10d12f1c95fa6c13c83f1da34bbaf21063d9a2b (patch)
tree659475bc971d23fec0fa5d9b671b645f8588a49c /board/glados
parent096dec1adba5928fdff6c0d0b47d51545580a268 (diff)
downloadchrome-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/glados')
-rw-r--r--board/glados/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/glados/board.c b/board/glados/board.c
index 892d5ed425..08ed832fa6 100644
--- a/board/glados/board.c
+++ b/board/glados/board.c
@@ -18,6 +18,7 @@
#include "driver/accel_kionix.h"
#include "driver/accel_kx022.h"
#include "driver/accelgyro_bmi160.h"
+#include "driver/tcpm/tcpci.h"
#include "extpower.h"
#include "gpio.h"
#include "hooks.h"
@@ -127,8 +128,8 @@ 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 + 2},
+ {I2C_PORT_TCPC, CONFIG_TCPC_I2C_BASE_ADDR, &tcpci_tcpm_drv},
+ {I2C_PORT_TCPC, CONFIG_TCPC_I2C_BASE_ADDR + 2, &tcpci_tcpm_drv},
};
/* SPI devices */