2008-10-05 09:29:44 +03:00
|
|
|
--- a/drivers/usb/host/Kconfig
|
|
|
|
+++ b/drivers/usb/host/Kconfig
|
2008-10-15 22:30:21 +03:00
|
|
|
@@ -81,6 +81,12 @@ config USB_EHCI_BIG_ENDIAN_DESC
|
2008-10-05 09:29:44 +03:00
|
|
|
depends on USB_EHCI_HCD && (440EPX || ARCH_IXP4XX)
|
|
|
|
default y
|
|
|
|
|
|
|
|
+config USB_EHCI_AR71XX
|
|
|
|
+ bool "USB EHCI support for AR71xx"
|
|
|
|
+ depends on USB_EHCI_HCD && ATHEROS_AR71XX
|
|
|
|
+ help
|
|
|
|
+ Support for Atheros AR71xx built-in EHCI controller
|
|
|
|
+
|
|
|
|
config USB_EHCI_FSL
|
|
|
|
bool "Support for Freescale on-chip EHCI USB controller"
|
|
|
|
depends on USB_EHCI_HCD && FSL_SOC
|
2008-11-28 17:33:47 +02:00
|
|
|
@@ -141,6 +147,12 @@ config USB_OHCI_HCD
|
2008-10-05 09:29:44 +03:00
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called ohci-hcd.
|
|
|
|
|
|
|
|
+config USB_OHCI_AR71XX
|
|
|
|
+ bool "USB OHCI support for Atheros AR71xx"
|
|
|
|
+ depends on USB_OHCI_HCD && ATHEROS_AR71XX
|
|
|
|
+ help
|
|
|
|
+ Support for Atheros AR71xx built-in OHCI controller
|
|
|
|
+
|
|
|
|
config USB_OHCI_HCD_PPC_SOC
|
|
|
|
bool "OHCI support for on-chip PPC USB controller"
|
|
|
|
depends on USB_OHCI_HCD && (STB03xxx || PPC_MPC52xx)
|
|
|
|
--- a/drivers/usb/host/ehci-hcd.c
|
|
|
|
+++ b/drivers/usb/host/ehci-hcd.c
|
2008-11-28 17:33:47 +02:00
|
|
|
@@ -1039,6 +1039,11 @@ MODULE_LICENSE ("GPL");
|
2008-10-05 09:29:44 +03:00
|
|
|
#define PLATFORM_DRIVER ixp4xx_ehci_driver
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef CONFIG_USB_EHCI_AR71XX
|
|
|
|
+#include "ehci-ar71xx.c"
|
2008-11-30 22:58:23 +02:00
|
|
|
+#define PLATFORM_DRIVER ehci_ar71xx_driver
|
2008-10-05 09:29:44 +03:00
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#if !defined(PCI_DRIVER) && !defined(PLATFORM_DRIVER) && \
|
|
|
|
!defined(PS3_SYSTEM_BUS_DRIVER) && !defined(OF_PLATFORM_DRIVER)
|
|
|
|
#error "missing bus glue for ehci-hcd"
|
|
|
|
--- a/drivers/usb/host/ohci.h
|
|
|
|
+++ b/drivers/usb/host/ohci.h
|
2008-10-15 22:30:21 +03:00
|
|
|
@@ -549,6 +549,11 @@ static inline struct usb_hcd *ohci_to_hc
|
2008-10-05 09:29:44 +03:00
|
|
|
#define writel_be(val, addr) out_be32((__force unsigned *)addr, val)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if defined(CONFIG_ATHEROS_AR71XX)
|
|
|
|
+#define readl_be(addr) __raw_readl(addr)
|
|
|
|
+#define writel_be(val, addr) __raw_writel(addr, val)
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
static inline unsigned int _ohci_readl (const struct ohci_hcd *ohci,
|
|
|
|
__hc32 __iomem * regs)
|
|
|
|
{
|
|
|
|
--- a/drivers/usb/host/ohci-hcd.c
|
|
|
|
+++ b/drivers/usb/host/ohci-hcd.c
|
2008-10-15 22:30:21 +03:00
|
|
|
@@ -1078,6 +1078,11 @@ MODULE_LICENSE ("GPL");
|
2008-10-05 09:29:44 +03:00
|
|
|
#define SM501_OHCI_DRIVER ohci_hcd_sm501_driver
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef CONFIG_USB_OHCI_AR71XX
|
|
|
|
+#include "ohci-ar71xx.c"
|
|
|
|
+#define PLATFORM_DRIVER ohci_hcd_ar71xx_driver
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#if !defined(PCI_DRIVER) && \
|
|
|
|
!defined(PLATFORM_DRIVER) && \
|
|
|
|
!defined(OF_PLATFORM_DRIVER) && \
|