diff options
Diffstat (limited to 'board/kukui/board.c')
-rw-r--r-- | board/kukui/board.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c index 91b989aec8..5476030130 100644 --- a/board/kukui/board.c +++ b/board/kukui/board.c @@ -119,7 +119,8 @@ void board_set_dp_mux_control(int output_enable, int polarity) gpio_set_level(GPIO_USB_C0_DP_POLARITY, polarity); } -static void board_hpd_update(int port, int hpd_lvl, int hpd_irq) +static void board_hpd_update(const struct usb_mux *me, + int hpd_lvl, int hpd_irq) { /* * svdm_dp_attention() did most of the work, we only need to notify @@ -144,7 +145,9 @@ __override const struct rt946x_init_setting *board_rt946x_init_setting(void) 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_update, }, |