static int svdm_enter_dp_mode(int port, uint32_t mode_caps) { /* Only enter mode if device is DFP_D capable */ if (mode_caps & MODE_DP_SNK) { svdm_safe_dp_mode(port); return 0; } return -1; }
static void svdm_exit_dp_mode(int port) { svdm_safe_dp_mode(port); gpio_set_level(PORT_TO_HPD(port), 0); }
static void svdm_exit_dp_mode(int port) { svdm_safe_dp_mode(port); gpio_set_level(GPIO_USBC_DP_HPD, 0); }
static void svdm_exit_dp_mode(int port) { const struct usb_mux *mux = &usb_muxes[port]; svdm_safe_dp_mode(port); mux->hpd_update(port, 0, 0); }
static void svdm_exit_dp_mode(int port) { svdm_safe_dp_mode(port); board_typec_dp_off(port, dp_flags); }