Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dehci-generic.c28 struct udevice *vbus_supply; member
41 &priv->vbus_supply); in ehci_enable_vbus_supply()
45 if (priv->vbus_supply) { in ehci_enable_vbus_supply()
46 ret = regulator_set_enable(priv->vbus_supply, true); in ehci_enable_vbus_supply()
60 if (priv->vbus_supply) in ehci_disable_vbus_supply()
61 return regulator_set_enable(priv->vbus_supply, false); in ehci_disable_vbus_supply()
H A Dehci-mx6.c420 struct udevice *vbus_supply; member
437 if (priv->vbus_supply) { in mx6_init_after_reset()
438 ret = regulator_set_enable(priv->vbus_supply, in mx6_init_after_reset()
587 &priv->vbus_supply); in ehci_usb_probe()
596 if (priv->vbus_supply) { in ehci_usb_probe()
597 ret = regulator_set_enable(priv->vbus_supply, in ehci_usb_probe()
H A Dehci-mx5.c278 struct udevice *vbus_supply; member
327 &priv->vbus_supply); in ehci_usb_probe()
331 if (!ret && priv->vbus_supply) { in ehci_usb_probe()
332 ret = regulator_set_enable(priv->vbus_supply, in ehci_usb_probe()
H A Ddwc2.c39 struct udevice *vbus_supply; member
181 &priv->vbus_supply); in dwc_vbus_supply_init()
187 ret = regulator_set_enable(priv->vbus_supply, true); in dwc_vbus_supply_init()
201 if (priv->vbus_supply) { in dwc_vbus_supply_exit()
202 ret = regulator_set_enable(priv->vbus_supply, false); in dwc_vbus_supply_exit()
H A Dr8a66597-hcd.c829 &priv->vbus_supply); in r8a66597_usb_probe()
836 ret = regulator_set_enable(priv->vbus_supply, true); in r8a66597_usb_probe()
866 ret = regulator_set_enable(priv->vbus_supply, false); in r8a66597_usb_remove()
H A Dr8a66597.h400 struct udevice *vbus_supply; member
/OK3568_Linux_fs/u-boot/drivers/phy/
H A Dphy-rockchip-inno-usb3.c121 struct udevice *vbus_supply; member
189 if (!u3phy->vbus_supply) { in rockchip_u3phy_power_on()
191 &u3phy->vbus_supply); in rockchip_u3phy_power_on()
197 ret = regulator_set_enable(u3phy->vbus_supply, true); in rockchip_u3phy_power_on()
214 if (u3phy->vbus_supply) { in rockchip_u3phy_power_off()
215 ret = regulator_set_enable(u3phy->vbus_supply, false); in rockchip_u3phy_power_off()
221 u3phy->vbus_supply = NULL; in rockchip_u3phy_power_off()
H A Dphy-rockchip-naneng-usb2.c149 struct udevice *vbus_supply[USB2PHY_NUM_PORTS]; member
276 vbus = rphy->vbus_supply[USB2PHY_PORT_HOST]; in rockchip_usb2phy_check_vbus()
282 vbus = rphy->vbus_supply[USB2PHY_PORT_OTG]; in rockchip_usb2phy_check_vbus()
376 &rphy->vbus_supply[USB2PHY_PORT_HOST]); in rockchip_usb2phy_of_xlate()
380 &rphy->vbus_supply[USB2PHY_PORT_OTG]); in rockchip_usb2phy_of_xlate()
H A Dphy-rockchip-inno-usb2.c162 struct udevice *vbus_supply[USB2PHY_NUM_PORTS]; member
482 struct udevice *vbus = rphy->vbus_supply[phy->id]; in rockchip_usb2phy_power_on()
500 struct udevice *vbus = rphy->vbus_supply[phy->id]; in rockchip_usb2phy_power_off()
524 &rphy->vbus_supply[USB2PHY_PORT_HOST]); in rockchip_usb2phy_of_xlate()
528 &rphy->vbus_supply[USB2PHY_PORT_OTG]); in rockchip_usb2phy_of_xlate()
529 if (!rphy->vbus_supply[USB2PHY_PORT_OTG]) in rockchip_usb2phy_of_xlate()
531 &rphy->vbus_supply[USB2PHY_PORT_OTG]); in rockchip_usb2phy_of_xlate()
/OK3568_Linux_fs/u-boot/drivers/usb/dwc3/
H A Ddwc3-meson-g12a.c118 struct udevice *vbus_supply; member
279 if (priv->vbus_supply) { in dwc3_meson_g12a_force_mode()
280 int ret = regulator_set_enable(priv->vbus_supply, in dwc3_meson_g12a_force_mode()
383 &priv->vbus_supply); in dwc3_meson_g12a_probe()
389 if (priv->vbus_supply) { in dwc3_meson_g12a_probe()
390 ret = regulator_set_enable(priv->vbus_supply, true); in dwc3_meson_g12a_probe()
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dda8xx.c431 struct regulator *vbus_supply; in get_vbus_power() local
434 vbus_supply = regulator_get_optional(dev, "vbus"); in get_vbus_power()
435 if (IS_ERR(vbus_supply)) in get_vbus_power()
437 current_uA = regulator_get_current_limit(vbus_supply); in get_vbus_power()
438 regulator_put(vbus_supply); in get_vbus_power()
/OK3568_Linux_fs/kernel/drivers/usb/dwc2/
H A Dplatform.c530 hsotg->vbus_supply = devm_regulator_get_optional(hsotg->dev, "vbus"); in dwc2_driver_probe()
531 if (IS_ERR(hsotg->vbus_supply)) { in dwc2_driver_probe()
532 retval = PTR_ERR(hsotg->vbus_supply); in dwc2_driver_probe()
533 hsotg->vbus_supply = NULL; in dwc2_driver_probe()
H A Dcore.h1076 struct regulator *vbus_supply; member
H A Dhcd.c171 if (hsotg->vbus_supply) in dwc2_vbus_supply_init()
172 return regulator_enable(hsotg->vbus_supply); in dwc2_vbus_supply_init()
179 if (hsotg->vbus_supply) in dwc2_vbus_supply_exit()
180 return regulator_disable(hsotg->vbus_supply); in dwc2_vbus_supply_exit()
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dtegra114-tn7.dts261 /* Should be changed to "otg" once we have vbus_supply */
H A Dtegra114-roth.dts991 /* Should be changed to "otg" once we have vbus_supply */