ramips: add preliminary support for the RT3662/RT3883 SoCs
[openwrt.git] / target / linux / ramips / patches-2.6.39 / 200-rt3883-ehci-glue.patch
1 --- a/drivers/usb/host/Kconfig
2 +++ b/drivers/usb/host/Kconfig
3 @@ -202,6 +202,15 @@ config USB_CNS3XXX_EHCI
4           It is needed for high-speed (480Mbit/sec) USB 2.0 device
5           support.
6  
7 +config USB_EHCI_RT3883
8 +       bool "EHCI support for Ralink RT3662/RT3883 SoCs"
9 +       depends on USB_EHCI_HCD && SOC_RT3883
10 +       select USB_EHCI_ROOT_HUB_TT
11 +       default y
12 +       ---help---
13 +         Enables support for the built-in EHCI controller present
14 +         on the Ralink RT3883 SoC.
15 +
16  config USB_OXU210HP_HCD
17         tristate "OXU210HP HCD support"
18         depends on USB
19 --- a/drivers/usb/host/ehci-hcd.c
20 +++ b/drivers/usb/host/ehci-hcd.c
21 @@ -1267,6 +1267,11 @@ MODULE_LICENSE ("GPL");
22  #define PLATFORM_DRIVER                tegra_ehci_driver
23  #endif
24  
25 +#ifdef CONFIG_USB_EHCI_RT3883
26 +#include "ehci-rt3883.c"
27 +#define PLATFORM_DRIVER                ehci_rt3883_driver
28 +#endif
29 +
30  #if !defined(PCI_DRIVER) && !defined(PLATFORM_DRIVER) && \
31      !defined(PS3_SYSTEM_BUS_DRIVER) && !defined(OF_PLATFORM_DRIVER) && \
32      !defined(XILINX_OF_PLATFORM_DRIVER)