17 #define ENPHY (0x01<<8)
18 #define PHY0_CTR (0xA4)
19 #define PHY1_CTR (0xA8)
43 hcd->rsrc_start = res->
start;
44 hcd->rsrc_len = resource_size(res);
51 hcd->regs =
ioremap(hcd->rsrc_start, hcd->rsrc_len);
52 if (hcd->regs ==
NULL) {
57 ehci = hcd_to_ehci(hcd);
58 ehci->
caps = hcd->regs;
59 ehci->
regs = hcd->regs +
94 void usb_w90x900_remove(
struct usb_hcd *hcd,
struct platform_device *pdev)
102 static const struct hc_driver ehci_w90x900_hc_driver = {
103 .description = hcd_name,
104 .product_desc =
"Nuvoton w90x900 EHCI Host Controller",
105 .hcd_priv_size =
sizeof(
struct ehci_hcd),
111 .flags = HCD_USB2|HCD_MEMORY,
120 .shutdown = ehci_shutdown,
125 .urb_enqueue = ehci_urb_enqueue,
126 .urb_dequeue = ehci_urb_dequeue,
127 .endpoint_disable = ehci_endpoint_disable,
128 .endpoint_reset = ehci_endpoint_reset,
133 .get_frame_number = ehci_get_frame,
138 .hub_status_data = ehci_hub_status_data,
139 .hub_control = ehci_hub_control,
144 .relinquish_port = ehci_relinquish_port,
145 .port_handed_over = ehci_port_handed_over,
147 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
155 return usb_w90x900_probe(&ehci_w90x900_hc_driver, pdev);
160 struct usb_hcd *hcd = platform_get_drvdata(pdev);
162 usb_w90x900_remove(hcd, pdev);
168 .probe = ehci_w90x900_probe,
171 .name =
"w90x900-ehci",