Lines Matching full:phy0
80 /* A83T specific control bits for PHY0 */
129 /* phy0 / otg related variables */
471 /* For phy0 only turn on Vbus if we don't have an ext. Vbus */ in sun4i_usb_phy_power_on()
503 * phy0 vbus typically slowly discharges, sometimes this causes the in sun4i_usb_phy_power_off()
574 /* Host mode. Route phy0 to EHCI/OHCI */ in sun4i_usb_phy0_reroute()
577 /* Peripheral mode. Route phy0 to MUSB */ in sun4i_usb_phy0_reroute()
587 struct phy *phy0 = data->phys[0].phy; in sun4i_usb_phy0_id_vbus_det_scan() local
592 if (!phy0) in sun4i_usb_phy0_id_vbus_det_scan()
595 phy = phy_get_drvdata(phy0); in sun4i_usb_phy0_id_vbus_det_scan()
599 mutex_lock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
602 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
617 sun4i_usb_phy0_set_vbus_detect(phy0, 0); in sun4i_usb_phy0_id_vbus_det_scan()
619 sun4i_usb_phy0_set_vbus_detect(phy0, 1); in sun4i_usb_phy0_id_vbus_det_scan()
621 sun4i_usb_phy0_set_id_detect(phy0, id_det); in sun4i_usb_phy0_id_vbus_det_scan()
627 sun4i_usb_phy0_set_vbus_detect(phy0, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan()
632 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
639 mutex_lock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
640 sun4i_usb_phy0_set_vbus_detect(phy0, 0); in sun4i_usb_phy0_id_vbus_det_scan()
642 sun4i_usb_phy0_set_vbus_detect(phy0, 1); in sun4i_usb_phy0_id_vbus_det_scan()
643 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
646 /* Enable PHY0 passby for host mode only. */ in sun4i_usb_phy0_id_vbus_det_scan()
649 /* Re-route PHY0 if necessary */ in sun4i_usb_phy0_id_vbus_det_scan()