diff options
Diffstat (limited to 'board/oak/board.c')
-rw-r--r-- | board/oak/board.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/board/oak/board.c b/board/oak/board.c index 845eeebe10..4e7d317a4b 100644 --- a/board/oak/board.c +++ b/board/oak/board.c @@ -113,8 +113,22 @@ const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); #endif const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { - {I2C_PORT_TCPC, CONFIG_TCPC_I2C_BASE_ADDR, &tcpci_tcpm_drv}, - {I2C_PORT_TCPC, CONFIG_TCPC_I2C_BASE_ADDR + 2, &tcpci_tcpm_drv}, + { + .bus_type = EC_BUS_TYPE_I2C, + .i2c_info = { + .port = I2C_PORT_TCPC, + .addr = CONFIG_TCPC_I2C_BASE_ADDR, + }, + .drv = &tcpci_tcpm_drv, + }, + { + .bus_type = EC_BUS_TYPE_I2C, + .i2c_info = { + .port = I2C_PORT_TCPC, + .addr = CONFIG_TCPC_I2C_BASE_ADDR + 2, + }, + .drv = &tcpci_tcpm_drv, + }, }; struct mutex pericom_mux_lock; |