Lines Matching refs:ehci
128 static int usb_phy_enable(int index, struct usb_ehci *ehci) in usb_phy_enable() argument
140 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable()
315 int ehci_mx6_common_init(struct usb_ehci *ehci, int index) in ehci_mx6_common_init() argument
332 usb_phy_enable(index, ehci); in ehci_mx6_common_init()
348 struct usb_ehci *ehci = (struct usb_ehci *)(USB_BASE_ADDR + in ehci_hcd_init() local
355 ret = ehci_mx6_common_init(ehci, index); in ehci_hcd_init()
362 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
374 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_hcd_init()
375 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_hcd_init()
376 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
390 struct usb_ehci *ehci; member
400 struct usb_ehci *ehci = priv->ehci; in mx6_init_after_reset() local
403 ret = ehci_mx6_common_init(priv->ehci, priv->portnr); in mx6_init_after_reset()
420 setbits_le32(&ehci->usbmode, CM_HOST); in mx6_init_after_reset()
421 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in mx6_init_after_reset()
422 setbits_le32(&ehci->portsc, USB_EN); in mx6_init_after_reset()
506 struct usb_ehci *ehci = (struct usb_ehci *)devfdt_get_addr(dev); in ehci_usb_probe() local
513 priv->ehci = ehci; in ehci_usb_probe()
522 ret = ehci_mx6_common_init(ehci, priv->portnr); in ehci_usb_probe()
537 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_usb_probe()
538 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_usb_probe()
539 setbits_le32(&ehci->portsc, USB_EN); in ehci_usb_probe()
544 hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_usb_probe()