16 #include <linux/signal.h>
23 ohci_ppc_of_start(
struct usb_hcd *hcd)
28 if ((ret = ohci_init(ohci)) < 0)
31 if ((ret = ohci_run(ohci)) < 0) {
32 dev_err(hcd->self.controller,
"can't start %s\n",
41 static const struct hc_driver ohci_ppc_of_hc_driver = {
42 .description = hcd_name,
43 .product_desc =
"OF OHCI",
44 .hcd_priv_size =
sizeof(
struct ohci_hcd),
50 .flags = HCD_USB11 | HCD_MEMORY,
55 .start = ohci_ppc_of_start,
57 .shutdown = ohci_shutdown,
62 .urb_enqueue = ohci_urb_enqueue,
63 .urb_dequeue = ohci_urb_dequeue,
64 .endpoint_disable = ohci_endpoint_disable,
69 .get_frame_number = ohci_get_frame,
74 .hub_status_data = ohci_hub_status_data,
75 .hub_control = ohci_hub_control,
77 .bus_suspend = ohci_bus_suspend,
78 .bus_resume = ohci_bus_resume,
103 dev_dbg(&op->
dev,
"initializing PPC-OF USB Controller\n");
113 hcd->rsrc_start =
res.start;
114 hcd->rsrc_len = resource_size(&
res);
129 hcd->regs =
ioremap(hcd->rsrc_start, hcd->rsrc_len);
136 ohci = hcd_to_ohci(hcd);
172 pr_debug(
"%s: cannot get ehci offset from fdt\n", __FILE__);
191 dev_dbg(&op->
dev,
"stopping PPC-OF USB Controller\n");
208 if (hcd->driver->shutdown)
209 hcd->driver->shutdown(hcd);
213 static const struct of_device_id ohci_hcd_ppc_of_match[] = {
214 #ifdef CONFIG_USB_OHCI_HCD_PPC_OF_BE
217 .compatible =
"ohci-bigendian",
221 .compatible =
"ohci-be",
224 #ifdef CONFIG_USB_OHCI_HCD_PPC_OF_LE
227 .compatible =
"ohci-littledian",
231 .compatible =
"ohci-le",
238 #if !defined(CONFIG_USB_OHCI_HCD_PPC_OF_BE) && \
239 !defined(CONFIG_USB_OHCI_HCD_PPC_OF_LE)
240 #error "No endianness selected for ppc-of-ohci"
245 .probe = ohci_hcd_ppc_of_probe,
246 .remove = ohci_hcd_ppc_of_remove,
247 .shutdown = ohci_hcd_ppc_of_shutdown,
249 .name =
"ppc-of-ohci",
251 .of_match_table = ohci_hcd_ppc_of_match,