diff options
Diffstat (limited to 'board/rammus')
-rw-r--r-- | board/rammus/board.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/board/rammus/board.c b/board/rammus/board.c index 03aabe7514..472bb81ebc 100644 --- a/board/rammus/board.c +++ b/board/rammus/board.c @@ -163,18 +163,20 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* TCPC mux configuration */ struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { [USB_PD_PORT_PS8751] = { - .i2c_host_port = I2C_PORT_TCPC1, - .i2c_slave_addr = PS8751_I2C_ADDR1, + .bus_type = EC_BUS_TYPE_I2C, + .i2c_info = { + .port = I2C_PORT_TCPC1, + .addr = PS8751_I2C_ADDR1, + }, .drv = &ps8xxx_tcpm_drv, - /* Alert is active-low, push-pull */ - .flags = 0, }, [USB_PD_PORT_ANX7447] = { - .i2c_host_port = I2C_PORT_TCPC0, - .i2c_slave_addr = AN7447_TCPC3_I2C_ADDR, /* Verified on v1.1 */ + .bus_type = EC_BUS_TYPE_I2C, + .i2c_info = { + .port = I2C_PORT_TCPC0, + .addr = AN7447_TCPC3_I2C_ADDR, /* Verified on v1.1 */ + }, .drv = &anx7447_tcpm_drv, - /* Alert is active-low, push-pull */ - .flags = 0, }, }; @@ -237,7 +239,7 @@ static void ps8751_i2c_remap(void) * use the same i2c bus. Thus, reconfig the ps8751 i2c port * to i2c_0_0. */ - tcpc_config[USB_PD_PORT_PS8751].i2c_host_port = I2C_PORT_TCPC0; + tcpc_config[USB_PD_PORT_PS8751].i2c_info.port = I2C_PORT_TCPC0; } void board_tcpc_init(void) |