13 static int uhci_platform_init(
struct usb_hcd *hcd)
15 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
20 uhci->
reset_hc = uhci_generic_reset_hc;
33 static const struct hc_driver uhci_platform_hc_driver = {
34 .description = hcd_name,
35 .product_desc =
"Generic UHCI Host Controller",
36 .hcd_priv_size =
sizeof(
struct uhci_hcd),
40 .flags = HCD_MEMORY | HCD_USB11,
43 .reset = uhci_platform_init,
48 .bus_suspend = uhci_rh_suspend,
49 .bus_resume = uhci_rh_resume,
53 .urb_enqueue = uhci_urb_enqueue,
54 .urb_dequeue = uhci_urb_dequeue,
56 .endpoint_disable = uhci_hcd_endpoint_disable,
57 .get_frame_number = uhci_hcd_get_frame_number,
59 .hub_status_data = uhci_hub_status_data,
60 .hub_control = uhci_hub_control,
80 if (!pdev->
dev.dma_mask)
81 pdev->
dev.dma_mask = &platform_uhci_dma_mask;
89 hcd->rsrc_start = res->
start;
90 hcd->rsrc_len = resource_size(res);
93 pr_err(
"%s: request_mem_region failed\n", __func__);
98 hcd->regs =
ioremap(hcd->rsrc_start, hcd->rsrc_len);
100 pr_err(
"%s: ioremap failed\n", __func__);
104 uhci = hcd_to_uhci(hcd);
106 uhci->
regs = hcd->regs;
127 struct usb_hcd *hcd = platform_get_drvdata(pdev);
133 platform_set_drvdata(pdev,
NULL);
149 uhci_hc_died(hcd_to_uhci(hcd));
152 static const struct of_device_id platform_uhci_ids[] = {
153 { .compatible =
"platform-uhci", },
158 .probe = uhci_hcd_platform_probe,
159 .remove = uhci_hcd_platform_remove,
160 .shutdown = uhci_hcd_platform_shutdown,
162 .name =
"platform-uhci",