From e219c3ac3aea7cb16a25babaef2214378ca33f4b Mon Sep 17 00:00:00 2001
From: John Crispin <john@openwrt.org>
Date: Tue, 24 Jul 2012 20:38:08 +0000
Subject: [PATCH] enable OHCI/EHCI glue on Rt305x, so it is available for
 Rt3352F.

Hope that this works, didn't have a chance to actually test it...

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32815
---
 target/linux/ramips/files/arch/mips/ralink/Kconfig         | 2 ++
 target/linux/ramips/patches-3.3/200-rt3883-ehci-glue.patch | 2 +-
 target/linux/ramips/patches-3.3/201-rt3883-ohci-glue.patch | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/files/arch/mips/ralink/Kconfig b/target/linux/ramips/files/arch/mips/ralink/Kconfig
index b594881fc6..444a88ae93 100644
--- a/target/linux/ramips/files/arch/mips/ralink/Kconfig
+++ b/target/linux/ramips/files/arch/mips/ralink/Kconfig
@@ -52,6 +52,8 @@ config SOC_RT305X
 	select SYS_HAS_EARLY_PRINTK
 	select MIPS_MACHINE
 	select USB_ARCH_HAS_HCD
+	select USB_ARCH_HAS_OHCI
+	select USB_ARCH_HAS_EHCI
 
 config SOC_RT3883
 	bool
diff --git a/target/linux/ramips/patches-3.3/200-rt3883-ehci-glue.patch b/target/linux/ramips/patches-3.3/200-rt3883-ehci-glue.patch
index 636b6b2103..7fbcc94b0f 100644
--- a/target/linux/ramips/patches-3.3/200-rt3883-ehci-glue.patch
+++ b/target/linux/ramips/patches-3.3/200-rt3883-ehci-glue.patch
@@ -6,7 +6,7 @@
  
 +config USB_EHCI_RT3883
 +	bool "EHCI support for Ralink RT3662/RT3883 SoCs"
-+	depends on USB_EHCI_HCD && SOC_RT3883
++	depends on USB_EHCI_HCD && ( SOC_RT3883 || SOC_RT305X )
 +	select USB_EHCI_ROOT_HUB_TT
 +	default y
 +	---help---
diff --git a/target/linux/ramips/patches-3.3/201-rt3883-ohci-glue.patch b/target/linux/ramips/patches-3.3/201-rt3883-ohci-glue.patch
index 983e4f97e2..ba1aa58516 100644
--- a/target/linux/ramips/patches-3.3/201-rt3883-ohci-glue.patch
+++ b/target/linux/ramips/patches-3.3/201-rt3883-ohci-glue.patch
@@ -6,7 +6,7 @@
  
 +config USB_OHCI_RT3883
 +	bool "USB OHCI support for the Ralink RT3883 SoCs"
-+	depends on USB_OHCI_HCD && SOC_RT3883
++	depends on USB_OHCI_HCD && ( SOC_RT3883 || SOC_RT305X )
 +	default y
 +	help
 +	  Enables support for the built-in OHCI controller present on the
-- 
GitLab