diff options
Diffstat (limited to 'driver/usb_mux')
-rw-r--r-- | driver/usb_mux/ps8743.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/driver/usb_mux/ps8743.c b/driver/usb_mux/ps8743.c index 413b37e322..982bfbd91e 100644 --- a/driver/usb_mux/ps8743.c +++ b/driver/usb_mux/ps8743.c @@ -74,7 +74,13 @@ static int ps8743_init(const struct usb_mux *me) /* Writes control register to set switch mode */ static int ps8743_set_mux(const struct usb_mux *me, mux_state_t mux_state) { - uint8_t reg = 0; + /* + * For CE_DP, CE_USB, and FLIP, disable pin control and enable I2C + * control. + */ + uint8_t reg = (PS8743_MODE_DP_REG_CONTROL | + PS8743_MODE_USB_REG_CONTROL | + PS8743_MODE_FLIP_REG_CONTROL); if (mux_state & USB_PD_MUX_USB_ENABLED) reg |= PS8743_MODE_USB_ENABLE; |