summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-05-24 18:13:18 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-05-24 18:13:18 -0600
commit8315d2a76d9c2062242d95d5efff076c3ba3da9c (patch)
tree2df05f5a42411b9128e8b53cfec1448e37882df2
parentdeb638794b912923a364a9b31b1367d75ecd7f32 (diff)
CR TLSbo91782: Combine mx27 and mx31 usb headers.
http://www.bitshrine.org/gpp/linux-2.6.19.2-mx-combine_mx27_mx31_usb_headers-2.patch
-rw-r--r--drivers/usb/host/Kconfig5
-rw-r--r--drivers/usb/host/ehci-arc.c8
-rw-r--r--include/asm-arm/arch-mxc/arc_usb.h33
-rw-r--r--include/asm-arm/arch-mxc/mx27_usb.h33
-rw-r--r--include/asm-arm/arch-mxc/mx31_usb.h33
5 files changed, 37 insertions, 75 deletions
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 0b2544a2e2e8..733609edf625 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -49,13 +49,13 @@ config USB_EHCI_ARC
config USB_EHCI_ARC_H1
bool "Support for Host1 port on ARC controller"
- depends on USB_EHCI_ARC
+ depends on USB_EHCI_ARC && (ARCH_MX27 || ARCH_MX3)
---help---
Enable support for the USB Host1 port.
config USB_EHCI_ARC_H2
bool "Support for Host2 port on ARC controller"
- depends on USB_EHCI_ARC
+ depends on USB_EHCI_ARC && (ARCH_MX27 || ARCH_MX3)
---help---
Enable support for the USB Host2 port.
@@ -79,6 +79,7 @@ config USB_EHCI_ARC_OTGHS
config USB_EHCI_ARC_OTGFS
bool "Full Speed"
+ depends on MACH_MX31ADS || MACH_MX27ADS
---help---
Enable support for the USB OTG port in FS Host mode.
endchoice
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c
index 11a4f5ce3b08..6933c1a6a774 100644
--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -30,13 +30,7 @@
#include <asm/arch/arc_otg.h>
#include <asm/arch/isp1504.h>
-#ifdef CONFIG_ARCH_MX3
-#include <asm/arch/mx31_usb.h>
-#endif
-
-#ifdef CONFIG_ARCH_MX27
-#include <asm/arch/mx27_usb.h>
-#endif
+#include <asm/arch/arc_usb.h>
#undef dbg
#undef vdbg
diff --git a/include/asm-arm/arch-mxc/arc_usb.h b/include/asm-arm/arch-mxc/arc_usb.h
new file mode 100644
index 000000000000..6c8c7799b228
--- /dev/null
+++ b/include/asm-arm/arch-mxc/arc_usb.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
+ */
+
+/*
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/* ehci_arc_hc_driver.flags value */
+#define FSL_PLATFORM_HC_FLAGS HCD_USB2
+
+static inline int fsl_platform_verify(struct platform_device *pdev)
+{
+ return 0;
+}
+
+static inline void fsl_platform_usb_setup(struct usb_hcd *hcd)
+{
+}
+
+static inline void fsl_platform_set_host_mode(struct usb_hcd *hcd)
+{
+ unsigned int temp;
+
+ /* set host mode */
+ temp = readl(hcd->regs + 0x1a8);
+ writel(temp | USBMODE_CM_HOST, hcd->regs + 0x1a8);
+}
diff --git a/include/asm-arm/arch-mxc/mx27_usb.h b/include/asm-arm/arch-mxc/mx27_usb.h
index 4442f1ff5230..e69de29bb2d1 100644
--- a/include/asm-arm/arch-mxc/mx27_usb.h
+++ b/include/asm-arm/arch-mxc/mx27_usb.h
@@ -1,33 +0,0 @@
-/*
- * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
- */
-
-/*
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
- */
-
-/* ehci_arc_hc_driver.flags value */
-#define FSL_PLATFORM_HC_FLAGS (HCD_USB2 | HCD_USB2)
-
-static inline int fsl_platform_verify(struct platform_device *pdev)
-{
- return 0;
-}
-
-static inline void fsl_platform_usb_setup(struct usb_hcd *hcd)
-{
-}
-
-static inline void fsl_platform_set_host_mode(struct usb_hcd *hcd)
-{
- unsigned int temp;
-
- /* set host mode */
- temp = readl(hcd->regs + 0x1a8);
- writel(temp | USBMODE_CM_HOST, hcd->regs + 0x1a8);
-}
diff --git a/include/asm-arm/arch-mxc/mx31_usb.h b/include/asm-arm/arch-mxc/mx31_usb.h
index 4442f1ff5230..e69de29bb2d1 100644
--- a/include/asm-arm/arch-mxc/mx31_usb.h
+++ b/include/asm-arm/arch-mxc/mx31_usb.h
@@ -1,33 +0,0 @@
-/*
- * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
- */
-
-/*
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
- */
-
-/* ehci_arc_hc_driver.flags value */
-#define FSL_PLATFORM_HC_FLAGS (HCD_USB2 | HCD_USB2)
-
-static inline int fsl_platform_verify(struct platform_device *pdev)
-{
- return 0;
-}
-
-static inline void fsl_platform_usb_setup(struct usb_hcd *hcd)
-{
-}
-
-static inline void fsl_platform_set_host_mode(struct usb_hcd *hcd)
-{
- unsigned int temp;
-
- /* set host mode */
- temp = readl(hcd->regs + 0x1a8);
- writel(temp | USBMODE_CM_HOST, hcd->regs + 0x1a8);
-}