summaryrefslogtreecommitdiff
path: root/board/eve/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/eve/board.c')
-rw-r--r--board/eve/board.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/board/eve/board.c b/board/eve/board.c
index bb8bef1b55..c7eb7e6c57 100644
--- a/board/eve/board.c
+++ b/board/eve/board.c
@@ -215,18 +215,20 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
/* TCPC mux configuration */
const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = {
{
- .i2c_host_port = I2C_PORT_TCPC0,
- .i2c_slave_addr = ANX74XX_I2C_ADDR1,
+ .bus_type = EC_BUS_TYPE_I2C,
+ .i2c_info = {
+ .port = I2C_PORT_TCPC0,
+ .addr = ANX74XX_I2C_ADDR1,
+ },
.drv = &anx74xx_tcpm_drv,
- /* Alert is active-low, push-pull */
- .flags = 0,
},
{
- .i2c_host_port = I2C_PORT_TCPC1,
- .i2c_slave_addr = ANX74XX_I2C_ADDR1,
+ .bus_type = EC_BUS_TYPE_I2C,
+ .i2c_info = {
+ .port = I2C_PORT_TCPC1,
+ .addr = ANX74XX_I2C_ADDR1,
+ },
.drv = &anx74xx_tcpm_drv,
- /* Alert is active-low, push-pull */
- .flags = 0,
},
};