Lines Matching refs:gpio_vbus
99 const char *gpio_vbus; member
104 .gpio_vbus = CONFIG_USB0_VBUS_PIN,
109 .gpio_vbus = CONFIG_USB1_VBUS_PIN,
114 .gpio_vbus = CONFIG_USB2_VBUS_PIN,
119 .gpio_vbus = CONFIG_USB3_VBUS_PIN,
128 int gpio_vbus; member
230 if (usb_phy->gpio_vbus >= 0) in sun4i_usb_phy_power_on()
231 gpio_set_value(usb_phy->gpio_vbus, SUNXI_GPIO_PULL_UP); in sun4i_usb_phy_power_on()
245 if (usb_phy->gpio_vbus >= 0) in sun4i_usb_phy_power_off()
246 gpio_set_value(usb_phy->gpio_vbus, SUNXI_GPIO_PULL_DISABLE); in sun4i_usb_phy_power_off()
452 phy->gpio_vbus = sunxi_name_to_gpio(info->gpio_vbus); in sun4i_usb_phy_probe()
453 if (phy->gpio_vbus >= 0) { in sun4i_usb_phy_probe()
454 ret = gpio_request(phy->gpio_vbus, "usb_vbus"); in sun4i_usb_phy_probe()
457 ret = gpio_direction_output(phy->gpio_vbus, 0); in sun4i_usb_phy_probe()