Home
last modified time | relevance | path

Searched refs:qcom_usb (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/usb/typec/
Dqcom-pmic-typec.c47 *qcom_usb, bool enable) in qcom_pmic_typec_enable_vbus_regulator()
51 if (enable == qcom_usb->vbus_enabled) in qcom_pmic_typec_enable_vbus_regulator()
55 ret = regulator_enable(qcom_usb->vbus_reg); in qcom_pmic_typec_enable_vbus_regulator()
59 ret = regulator_disable(qcom_usb->vbus_reg); in qcom_pmic_typec_enable_vbus_regulator()
63 qcom_usb->vbus_enabled = enable; in qcom_pmic_typec_enable_vbus_regulator()
66 static void qcom_pmic_typec_check_connection(struct qcom_pmic_typec *qcom_usb) in qcom_pmic_typec_check_connection() argument
73 regmap_read(qcom_usb->regmap, qcom_usb->base + TYPEC_MISC_STATUS, in qcom_pmic_typec_check_connection()
80 typec_set_orientation(qcom_usb->port, orientation); in qcom_pmic_typec_check_connection()
92 qcom_pmic_typec_enable_vbus_regulator(qcom_usb, enable_vbus); in qcom_pmic_typec_check_connection()
93 usb_role_switch_set_role(qcom_usb->role_sw, role); in qcom_pmic_typec_check_connection()
[all …]