24 static int ehci_sead3_setup(
struct usb_hcd *hcd)
27 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
29 ehci->
caps = hcd->regs + 0x100;
36 ret = ehci_setup(hcd);
43 ehci_writel(ehci, 0x1010, &ehci->
regs->reserved1[1]);
49 .description = hcd_name,
50 .product_desc =
"SEAD-3 EHCI",
51 .hcd_priv_size =
sizeof(
struct ehci_hcd),
57 .flags = HCD_MEMORY | HCD_USB2,
63 .reset = ehci_sead3_setup,
66 .shutdown = ehci_shutdown,
71 .urb_enqueue = ehci_urb_enqueue,
72 .urb_dequeue = ehci_urb_dequeue,
73 .endpoint_disable = ehci_endpoint_disable,
74 .endpoint_reset = ehci_endpoint_reset,
79 .get_frame_number = ehci_get_frame,
84 .hub_status_data = ehci_hub_status_data,
85 .hub_control = ehci_hub_control,
88 .relinquish_port = ehci_relinquish_port,
89 .port_handed_over = ehci_port_handed_over,
91 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
104 pr_debug(
"resource[1] is not IORESOURCE_IRQ");
112 hcd->rsrc_start = res->
start;
113 hcd->rsrc_len = resource_size(res);
128 platform_set_drvdata(pdev, hcd);
139 struct usb_hcd *hcd = platform_get_drvdata(pdev);
143 platform_set_drvdata(pdev,
NULL);
149 static int ehci_hcd_sead3_drv_suspend(
struct device *
dev)
152 bool do_wakeup = device_may_wakeup(dev);
154 return ehci_suspend(hcd, do_wakeup);
157 static int ehci_hcd_sead3_drv_resume(
struct device *
dev)
161 ehci_resume(hcd,
false);
165 static const struct dev_pm_ops sead3_ehci_pmops = {
166 .
suspend = ehci_hcd_sead3_drv_suspend,
167 .resume = ehci_hcd_sead3_drv_resume,
170 #define SEAD3_EHCI_PMOPS (&sead3_ehci_pmops)
173 #define SEAD3_EHCI_PMOPS NULL
177 .probe = ehci_hcd_sead3_drv_probe,
178 .remove = ehci_hcd_sead3_drv_remove,
181 .name =
"sead3-ehci",