Lines Matching refs:ehci
84 static void usb_phy_enable(int index, struct usb_ehci *ehci) in usb_phy_enable() argument
92 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable()
139 int ehci_vf_common_init(struct usb_ehci *ehci, int index) in ehci_vf_common_init() argument
151 usb_phy_enable(index, ehci); in ehci_vf_common_init()
160 struct usb_ehci *ehci; in ehci_hcd_init() local
167 ehci = (struct usb_ehci *)nc_reg_bases[index]; in ehci_hcd_init()
173 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
182 setbits_le32(&ehci->usbmode, CM_DEVICE); in ehci_hcd_init()
183 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_hcd_init()
184 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
186 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_hcd_init()
187 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_hcd_init()
188 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
209 struct usb_ehci *ehci; member
225 priv->ehci = (struct usb_ehci *)devfdt_get_addr(dev); in vf_usb_ofdata_to_platdata()
272 struct usb_ehci *ehci = priv->ehci; in vf_init_after_reset() local
275 ret = ehci_vf_common_init(priv->ehci, priv->portnr); in vf_init_after_reset()
282 setbits_le32(&ehci->usbmode, CM_HOST); in vf_init_after_reset()
283 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in vf_init_after_reset()
284 setbits_le32(&ehci->portsc, USB_EN); in vf_init_after_reset()
315 struct usb_ehci *ehci = priv->ehci; in ehci_usb_probe() local
320 ret = ehci_vf_common_init(ehci, priv->portnr); in ehci_usb_probe()
328 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_usb_probe()
329 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_usb_probe()
330 setbits_le32(&ehci->portsc, USB_EN); in ehci_usb_probe()
335 hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_usb_probe()