/* PE calls this function to Enable or Disable VCONN.  */
int port0_policy_cb_vconn_en(const struct device *dev, enum tc_cc_polarity pol, bool en)
/* PE calls this function to Enable or Disable VCONN.  */
int port0_policy_cb_vconn_en(const struct device *dev, enum tc_cc_polarity pol, bool en)
{
	struct port0_data_t *dpm_data = usbc_get_dpm_data(dev);
	dpm_data->vconn_pol = pol;
	if (en == false) {
		vconn_ctrl_set(VCONN_OFF);
	} else if (pol == TC_POLARITY_CC1) {
		vconn_ctrl_set(VCONN1_ON);
	} else {
		vconn_ctrl_set(VCONN2_ON);
	}
	return 0;
}