diff options
Diffstat (limited to 'board/kodama/board.c')
-rw-r--r-- | board/kodama/board.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/kodama/board.c b/board/kodama/board.c index abc44c43d4..03ecf1afe7 100644 --- a/board/kodama/board.c +++ b/board/kodama/board.c @@ -104,7 +104,8 @@ struct mt6370_thermal_bound thermal_bound = { .err = 4, }; -static void board_hpd_status(int port, int hpd_lvl, int hpd_irq) +static void board_hpd_status(const struct usb_mux *me, + int hpd_lvl, int hpd_irq) { /* * svdm_dp_attention() did most of the work, we only need to notify @@ -128,9 +129,11 @@ __override const struct rt946x_init_setting *board_rt946x_init_setting(void) return &battery_init_setting; } -struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { +const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { { - .port_addr = IT5205_I2C_ADDR1_FLAGS, + .usb_port = 0, + .i2c_port = I2C_PORT_USB_MUX, + .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS, .driver = &it5205_usb_mux_driver, .hpd_update = &board_hpd_status, }, |