ramips: add support for 3.3
[openwrt.git] / target / linux / ramips / patches-3.3 / 201-rt3883-ohci-glue.patch
1 --- a/drivers/usb/host/Kconfig
2 +++ b/drivers/usb/host/Kconfig
3 @@ -328,6 +328,14 @@ config USB_OHCI_ATH79
4           Enables support for the built-in OHCI controller present on the
5           Atheros AR71XX/AR7240 SoCs.
6  
7 +config USB_OHCI_RT3883
8 +       bool "USB OHCI support for the Ralink RT3883 SoCs"
9 +       depends on USB_OHCI_HCD && SOC_RT3883
10 +       default y
11 +       help
12 +         Enables support for the built-in OHCI controller present on the
13 +         Ralink RT3883 SoC.
14 +
15  config USB_OHCI_HCD_PPC_SOC
16         bool "OHCI support for on-chip PPC USB controller"
17         depends on USB_OHCI_HCD && (STB03xxx || PPC_MPC52xx)
18 --- a/drivers/usb/host/ohci-hcd.c
19 +++ b/drivers/usb/host/ohci-hcd.c
20 @@ -1121,6 +1121,11 @@ MODULE_LICENSE ("GPL");
21  #define PLATFORM_DRIVER                ohci_xls_driver
22  #endif
23  
24 +#ifdef CONFIG_USB_OHCI_RT3883
25 +#include "ohci-rt3883.c"
26 +#define PLATFORM_DRIVER                ohci_rt3883_driver
27 +#endif
28 +
29  #if    !defined(PCI_DRIVER) &&         \
30         !defined(PLATFORM_DRIVER) &&    \
31         !defined(OMAP1_PLATFORM_DRIVER) &&      \