diff options
author | David Daney <ddaney@caviumnetworks.com> | 2010-10-08 17:47:52 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-10-29 14:08:44 -0400 |
commit | 1643accdaad4625c2877f7ceefa39c1cb3e90117 (patch) | |
tree | e3dcc5b371c89591e1d90f80bd82727b8e0fd245 /drivers/usb/host/ohci-hcd.c | |
parent | 4169b86324fbefdf137a0bd69154d0e874f2bec2 (diff) |
USB: Add EHCI and OHCH glue for OCTEON II SOCs.
The OCTEON II SOC has USB EHCI and OHCI controllers connected directly
to the internal I/O bus. This patch adds the necessary 'glue' logic
to allow ehci-hcd and ohci-hcd drivers to work on OCTEON II.
The OCTEON normally runs big-endian, and the ehci/ohci internal
registers have host endianness, so we need to select
USB_EHCI_BIG_ENDIAN_MMIO.
The ehci and ohci blocks share a common clocking and PHY
infrastructure. Initialization of the host controller and PHY clocks
is common between the two and is factored out into the
octeon2-common.c file.
Setting of USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI is done in
arch/mips/Kconfig in a following patch.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-usb@vger.kernel.org
To: dbrownell@users.sourceforge.net
Patchwork: http://patchwork.linux-mips.org/patch/1675/
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index f3713f43f3fe..5179acb7aa2f 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -1106,6 +1106,11 @@ MODULE_LICENSE ("GPL"); | |||
1106 | #define PLATFORM_DRIVER ohci_hcd_jz4740_driver | 1106 | #define PLATFORM_DRIVER ohci_hcd_jz4740_driver |
1107 | #endif | 1107 | #endif |
1108 | 1108 | ||
1109 | #ifdef CONFIG_USB_OCTEON_OHCI | ||
1110 | #include "ohci-octeon.c" | ||
1111 | #define PLATFORM_DRIVER ohci_octeon_driver | ||
1112 | #endif | ||
1113 | |||
1109 | #if !defined(PCI_DRIVER) && \ | 1114 | #if !defined(PCI_DRIVER) && \ |
1110 | !defined(PLATFORM_DRIVER) && \ | 1115 | !defined(PLATFORM_DRIVER) && \ |
1111 | !defined(OMAP1_PLATFORM_DRIVER) && \ | 1116 | !defined(OMAP1_PLATFORM_DRIVER) && \ |