diff options
Diffstat (limited to 'board/quiche/board.c')
-rw-r--r-- | board/quiche/board.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/quiche/board.c b/board/quiche/board.c index 0abb6d76c2..05fc76d132 100644 --- a/board/quiche/board.c +++ b/board/quiche/board.c @@ -157,6 +157,22 @@ struct ppc_config_t ppc_chips[] = { #endif #ifdef SECTION_IS_RW +/* + * PS8802 set mux board tuning. + * Adds in board specific gain and DP lane count configuration + */ +static int board_ps8822_mux_set(const struct usb_mux *me, + mux_state_t mux_state) +{ + int rv = EC_SUCCESS; + + /* DP specific config */ + if (mux_state & USB_PD_MUX_DP_ENABLED) + rv = ps8822_set_dp_rx_eq(me, PS8822_DPEQ_LEVEL_UP_20DB); + + return rv; +} + /* TCPCs */ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { [USB_PD_PORT_HOST] = { @@ -179,6 +195,7 @@ const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_port = I2C_PORT_I2C1, .i2c_addr_flags = PS8822_I2C_ADDR3_FLAG, .driver = &ps8822_usb_mux_driver, + .board_set = &board_ps8822_mux_set, }, [USB_PD_PORT_DP] = { .usb_port = USB_PD_PORT_DP, |