Enable dwc_otg driver.

Signed-off-by: Layne Edwards <ledwa...@astrumtech.net>



Index: target/linux/ramips/files/arch/mips/ralink/Kconfig
===================================================================
--- target/linux/ramips/files/arch/mips/ralink/Kconfig  (revision 26476)
+++ target/linux/ramips/files/arch/mips/ralink/Kconfig  (working copy)
@@ -47,6 +47,7 @@
        select SYS_SUPPORTS_LITTLE_ENDIAN
        select SYS_HAS_EARLY_PRINTK
        select MIPS_MACHINE
+       select USB_ARCH_HAS_HCD
 
 config RALINK_DEV_GPIO_BUTTONS
        def_bool n
Index: linux/ramips/rt305x/config-2.6.37
===================================================================
--- target/linux/ramips/rt305x/config-2.6.37    (revision 26476)
+++ target/linux/ramips/rt305x/config-2.6.37    (working copy)
@@ -27,6 +27,10 @@
 CONFIG_CSRC_R4K_LIB=y
 CONFIG_DECOMPRESS_LZMA=y
 CONFIG_DMA_NONCOHERENT=y
+CONFIG_DWC_OTG=y
+# CONFIG_DWC_OTG_DEBUG is not set
+# CONFIG_DWC_OTG_DEVICE_ONLY is not set
+CONFIG_DWC_OTG_HOST_ONLY=y
 CONFIG_EARLY_PRINTK=y
 # CONFIG_FSNOTIFY is not set
 CONFIG_GENERIC_ATOMIC64=y
@@ -81,6 +85,7 @@
 CONFIG_MTD_PHYSMAP=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NEED_PER_CPU_KM=y
+CONFIG_NLS=y
 CONFIG_PAGEFLAGS_EXTENDED=y
 CONFIG_PERF_USE_VMALLOC=y
 CONFIG_PHYLIB=y
@@ -112,8 +117,8 @@
 CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
 CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
 CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
+CONFIG_USB=y
 # CONFIG_USB_ARCH_HAS_EHCI is not set
-# CONFIG_USB_ARCH_HAS_HCD is not set
 # CONFIG_USB_ARCH_HAS_OHCI is not set
 CONFIG_USB_SUPPORT=y
 CONFIG_ZONE_DMA_FLAG=0
Index: target/linux/ramips/patches-2.6.37/105-usb_dwc_otg.patch
===================================================================
--- target/linux/ramips/patches-2.6.37/105-usb_dwc_otg.patch    (revision 0)
+++ target/linux/ramips/patches-2.6.37/105-usb_dwc_otg.patch    (revision 0)
@@ -0,0 +1,16 @@
+--- a/drivers/usb/Kconfig
++++ b/drivers/usb/Kconfig
+@@ -163,4 +163,6 @@
+ 
+ source "drivers/usb/otg/Kconfig"
+ 
++source "drivers/usb/dwc_otg/Kconfig"
++
+ endif # USB_SUPPORT
+--- a/drivers/usb/Makefile
++++ b/drivers/usb/Makefile
+@@ -45,3 +45,4 @@
+ 
+ obj-$(CONFIG_USB_ATM)         += atm/
+ obj-$(CONFIG_USB_SPEEDTOUCH)  += atm/
++obj-$(CONFIG_DWC_OTG)         += dwc_otg/

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to