Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/misc/
Dhisi_hikey_usb.c33 struct hisi_hikey_usb { struct
52 static void hub_power_ctrl(struct hisi_hikey_usb *hisi_hikey_usb, int value) in hub_power_ctrl() argument
56 if (!hisi_hikey_usb->regulator) in hub_power_ctrl()
59 status = regulator_is_enabled(hisi_hikey_usb->regulator); in hub_power_ctrl()
64 ret = regulator_enable(hisi_hikey_usb->regulator); in hub_power_ctrl()
66 ret = regulator_disable(hisi_hikey_usb->regulator); in hub_power_ctrl()
69 dev_err(hisi_hikey_usb->dev, in hub_power_ctrl()
74 static void usb_switch_ctrl(struct hisi_hikey_usb *hisi_hikey_usb, in usb_switch_ctrl() argument
77 if (!hisi_hikey_usb->otg_switch) in usb_switch_ctrl()
80 gpiod_set_value_cansleep(hisi_hikey_usb->otg_switch, switch_to); in usb_switch_ctrl()
[all …]
DMakefile60 obj-$(CONFIG_HISI_HIKEY_USB) += hisi_hikey_usb.o
/Linux-v6.1/
DMAINTAINERS9243 F: drivers/misc/hisi_hikey_usb.c