14 #include <linux/kernel.h>
28 static struct resource ath79_ohci_resources[2];
36 .name =
"ohci-platform",
38 .resource = ath79_ohci_resources,
39 .num_resources =
ARRAY_SIZE(ath79_ohci_resources),
41 .dma_mask = &ath79_ohci_dmamask,
43 .platform_data = &ath79_ohci_pdata,
47 static struct resource ath79_ehci_resources[2];
52 .has_synopsys_hc_bug = 1,
63 .name =
"ehci-platform",
65 .resource = ath79_ehci_resources,
66 .num_resources =
ARRAY_SIZE(ath79_ehci_resources),
68 .dma_mask = &ath79_ehci_dmamask,
80 res[0].
end = base + size - 1;
87 #define AR71XX_USB_RESET_MASK (AR71XX_RESET_USB_HOST | \
88 AR71XX_RESET_USB_PHY | \
89 AR71XX_RESET_USB_OHCI_DLL)
91 static void __init ath79_usb_setup(
void)
117 ath79_ehci_device.
dev.platform_data = &ath79_ehci_pdata_v1;
121 static void __init ar7240_usb_setup(
void)
145 static void __init ar724x_usb_setup(
void)
158 ath79_ehci_device.
dev.platform_data = &ath79_ehci_pdata_v2;
162 static void __init ar913x_usb_setup(
void)
175 ath79_ehci_device.
dev.platform_data = &ath79_ehci_pdata_v2;
179 static void __init ar933x_usb_setup(
void)
192 ath79_ehci_device.
dev.platform_data = &ath79_ehci_pdata_v2;
196 static void __init ar934x_usb_setup(
void)
218 ath79_ehci_device.
dev.platform_data = &ath79_ehci_pdata_v2;
226 else if (soc_is_ar7240())
228 else if (soc_is_ar7241() || soc_is_ar7242())
230 else if (soc_is_ar913x())
232 else if (soc_is_ar933x())
234 else if (soc_is_ar934x())