aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2009-10-02 09:34:10 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2009-10-02 09:34:10 +0000
commit995eaeb63c8d1df61e7d027201dc744fabd17380 (patch)
treedacb215a4eb4e7052e82734e416623af5436e763
parent1d74dc98755ec22bf1d5dada5ba66c06b0fcf842 (diff)
downloadupstream-995eaeb63c8d1df61e7d027201dc744fabd17380.tar.gz
upstream-995eaeb63c8d1df61e7d027201dc744fabd17380.tar.bz2
upstream-995eaeb63c8d1df61e7d027201dc744fabd17380.zip
[etrax] Export USB host driver as kernel package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17818 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/modules/usb.mk16
-rw-r--r--target/linux/etrax/config-2.6.309
-rw-r--r--target/linux/etrax/patches-2.6.30/300-usb_support.patch13
3 files changed, 33 insertions, 5 deletions
diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk
index 4fcf5573ae..3ab32fd30b 100644
--- a/package/kernel/modules/usb.mk
+++ b/package/kernel/modules/usb.mk
@@ -134,6 +134,22 @@ endef
$(eval $(call KernelPackage,usb-adm5120))
+define KernelPackage/usb-etrax
+ $(call usbdep,@TARGET_etrax)
+ DEPENDS=kmod-usb-core
+ TITLE:=Support for the ETRAX USB host controller
+ KCONFIG:=CONFIG_ETRAX_USB_HOST \
+ CONFIG_ETRAX_USB_HOST_PORT1=y CONFIG_ETRAX_USB_HOST_PORT2=y
+ FILES:=$(LINUX_DIR)/drivers/usb/host/hc-crisv10.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,50,hc-crisv10)
+endef
+
+define KernelPackage/usb-etrax/description
+ Kernel support for the ETRAX USB host controller
+endef
+
+$(eval $(call KernelPackage,usb-etrax))
+
define KernelPackage/usb2
$(call usbdep,)
diff --git a/target/linux/etrax/config-2.6.30 b/target/linux/etrax/config-2.6.30
index 33b650848e..17aeeee91e 100644
--- a/target/linux/etrax/config-2.6.30
+++ b/target/linux/etrax/config-2.6.30
@@ -131,9 +131,7 @@ CONFIG_ETRAX_SERIAL_PORT3_DMA5_IN=y
CONFIG_ETRAX_SERIAL_RX_TIMEOUT_TICKS=5
# CONFIG_ETRAX_SOFT_SHUTDOWN is not set
# CONFIG_ETRAX_SYNCHRONOUS_SERIAL is not set
-CONFIG_ETRAX_USB_HOST=y
-CONFIG_ETRAX_USB_HOST_PORT1=y
-CONFIG_ETRAX_USB_HOST_PORT2=y
+# CONFIG_ETRAX_USB_HOST is not set
# CONFIG_ETRAX_VCS_SIM is not set
# CONFIG_ETRAX_WATCHDOG is not set
CONFIG_FORCE_MAX_ZONEORDER=6
@@ -166,4 +164,7 @@ CONFIG_PAGEFLAGS_EXTENDED=y
# CONFIG_SVINTO_SIM is not set
# CONFIG_SYSTEM_PROFILER is not set
CONFIG_UID16=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
diff --git a/target/linux/etrax/patches-2.6.30/300-usb_support.patch b/target/linux/etrax/patches-2.6.30/300-usb_support.patch
index b2c1d27e8d..7b2972656a 100644
--- a/target/linux/etrax/patches-2.6.30/300-usb_support.patch
+++ b/target/linux/etrax/patches-2.6.30/300-usb_support.patch
@@ -4,7 +4,7 @@
obj-$(CONFIG_USB_FHCI_HCD) += fhci.o
obj-$(CONFIG_USB_SL811_HCD) += sl811-hcd.o
obj-$(CONFIG_USB_SL811_CS) += sl811_cs.o
-+obj-$(CONFIG_ETRAX_ARCH_V10) += hc-crisv10.o
++obj-$(CONFIG_ETRAX_USB_HOST) += hc-crisv10.o
obj-$(CONFIG_USB_U132_HCD) += u132-hcd.o
obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
obj-$(CONFIG_USB_ISP1760_HCD) += isp1760.o
@@ -18,3 +18,14 @@
obj-$(CONFIG_USB_C67X00_HCD) += c67x00/
+--- a/arch/cris/arch-v10/drivers/Kconfig
++++ b/arch/cris/arch-v10/drivers/Kconfig
+@@ -410,7 +410,7 @@ config ETRAX_RS485_DISABLE_RECEIVER
+ Axis 2400/2401 must disable receiver.
+
+ config ETRAX_USB_HOST
+- bool "USB host"
++ tristate "ETRAX USB host"
+ select USB
+ help
+ This option enables the host functionality of the ETRAX 100LX