summaryrefslogtreecommitdiff
path: root/board/kunimitsu/board.c
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/kunimitsu/board.c
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/kunimitsu/board.c')
-rw-r--r--board/kunimitsu/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/kunimitsu/board.c b/board/kunimitsu/board.c
index 1a1072c909..75e8ecab0f 100644
--- a/board/kunimitsu/board.c
+++ b/board/kunimitsu/board.c
@@ -17,6 +17,7 @@
#include "driver/als_opt3001.h"
#include "driver/gyro_l3gd20h.h"
#include "driver/pmic_tps650830.h"
+#include "driver/tcpm/tcpci.h"
#include "driver/temp_sensor/tmp432.h"
#include "extpower.h"
#include "fan.h"
@@ -130,8 +131,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},
};
/* Physical fans. These are logically separate from pwm_channels. */