Searched refs:hisi_hikey_usb (Results 1 – 3 of 3) sorted by relevance
33 struct hisi_hikey_usb { struct52 static void hub_power_ctrl(struct hisi_hikey_usb *hisi_hikey_usb, int value) in hub_power_ctrl() argument56 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() argument77 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 …]
60 obj-$(CONFIG_HISI_HIKEY_USB) += hisi_hikey_usb.o
9243 F: drivers/misc/hisi_hikey_usb.c