Lines Matching full:phy0
82 /* A83T specific control bits for PHY0 */
140 /* phy0 / otg related variables */
432 /* For phy0 only turn on Vbus if we don't have an ext. Vbus */ in sun4i_usb_phy_power_on()
464 * phy0 vbus typically slowly discharges, sometimes this causes the in sun4i_usb_phy_power_off()
535 /* Host mode. Route phy0 to EHCI/OHCI */ in sun4i_usb_phy0_reroute()
538 /* Peripheral mode. Route phy0 to MUSB */ in sun4i_usb_phy0_reroute()
548 struct phy *phy0 = data->phys[0].phy; in sun4i_usb_phy0_id_vbus_det_scan() local
553 if (!phy0) in sun4i_usb_phy0_id_vbus_det_scan()
556 phy = phy_get_drvdata(phy0); in sun4i_usb_phy0_id_vbus_det_scan()
560 mutex_lock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
563 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
578 sun4i_usb_phy0_set_vbus_detect(phy0, 0); in sun4i_usb_phy0_id_vbus_det_scan()
580 sun4i_usb_phy0_set_vbus_detect(phy0, 1); in sun4i_usb_phy0_id_vbus_det_scan()
582 sun4i_usb_phy0_set_id_detect(phy0, id_det); in sun4i_usb_phy0_id_vbus_det_scan()
588 sun4i_usb_phy0_set_vbus_detect(phy0, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan()
593 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
600 mutex_lock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
601 sun4i_usb_phy0_set_vbus_detect(phy0, 0); in sun4i_usb_phy0_id_vbus_det_scan()
603 sun4i_usb_phy0_set_vbus_detect(phy0, 1); in sun4i_usb_phy0_id_vbus_det_scan()
604 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
607 /* Enable PHY0 passby for host mode only. */ in sun4i_usb_phy0_id_vbus_det_scan()
610 /* Re-route PHY0 if necessary */ in sun4i_usb_phy0_id_vbus_det_scan()