Searched refs:hisi_hikey_usb (Results 1 – 3 of 3) sorted by relevance
32 struct hisi_hikey_usb { struct51 static void hub_power_ctrl(struct hisi_hikey_usb *hisi_hikey_usb, int value) in hub_power_ctrl() argument55 if (!hisi_hikey_usb->regulator) in hub_power_ctrl()58 status = regulator_is_enabled(hisi_hikey_usb->regulator); in hub_power_ctrl()63 ret = regulator_enable(hisi_hikey_usb->regulator); in hub_power_ctrl()65 ret = regulator_disable(hisi_hikey_usb->regulator); in hub_power_ctrl()68 dev_err(hisi_hikey_usb->dev, in hub_power_ctrl()73 static void usb_switch_ctrl(struct hisi_hikey_usb *hisi_hikey_usb, in usb_switch_ctrl() argument76 if (!hisi_hikey_usb->otg_switch) in usb_switch_ctrl()79 gpiod_set_value_cansleep(hisi_hikey_usb->otg_switch, switch_to); in usb_switch_ctrl()[all …]
62 obj-$(CONFIG_HISI_HIKEY_USB) += hisi_hikey_usb.o
10164 F: drivers/misc/hisi_hikey_usb.c