summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorclaudio <claudio@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-11 12:27:09 +0000
committerclaudio <claudio@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-11 12:27:09 +0000
commit453df530fd3334e46dc16e2ba616902ba937af86 (patch)
tree6e86c8076c3ee08f5bb5b36ddd51b69870be60e4 /target
parentb9ca13b775ebb6df923ad6af4677c3c84c8eca7b (diff)
[etrax] enable usb support by default.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22129 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/etrax/config-default7
-rw-r--r--target/linux/etrax/files/drivers/usb/host/hc-crisv10.c2
-rw-r--r--target/linux/etrax/modules.mk22
-rw-r--r--target/linux/etrax/patches-2.6.32/300-usb_support.patch11
4 files changed, 7 insertions, 35 deletions
diff --git a/target/linux/etrax/config-default b/target/linux/etrax/config-default
index d41db6a3e0..65cdf10c37 100644
--- a/target/linux/etrax/config-default
+++ b/target/linux/etrax/config-default
@@ -131,7 +131,9 @@ CONFIG_ETRAX_SERIAL_RX_TIMEOUT_TICKS=5
CONFIG_ETRAX_SERIAL=y
# CONFIG_ETRAX_SOFT_SHUTDOWN is not set
# CONFIG_ETRAX_SYNCHRONOUS_SERIAL is not set
-# CONFIG_ETRAX_USB_HOST is not set
+CONFIG_ETRAX_USB_HOST=y
+CONFIG_ETRAX_USB_HOST_PORT1=y
+CONFIG_ETRAX_USB_HOST_PORT2=y
# CONFIG_ETRAX_VCS_SIM is not set
# CONFIG_ETRAX_WATCHDOG is not set
CONFIG_FORCE_MAX_ZONEORDER=6
@@ -153,6 +155,8 @@ CONFIG_MTDRAM_ABS_POS=0
CONFIG_MTDRAM_ERASE_SIZE=128
CONFIG_MTDRAM_TOTAL_SIZE=0
# CONFIG_NETDEV_1000 is not set
+CONFIG_NLS=y
+CONFIG_NLS_UTF8=y
CONFIG_NO_IOPORT=y
# CONFIG_OOM_REBOOT is not set
CONFIG_PAGEFLAGS_EXTENDED=y
@@ -164,6 +168,7 @@ CONFIG_PAGEFLAGS_EXTENDED=y
# CONFIG_TREE_PREEMPT_RCU is not set
CONFIG_TREE_RCU=y
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
diff --git a/target/linux/etrax/files/drivers/usb/host/hc-crisv10.c b/target/linux/etrax/files/drivers/usb/host/hc-crisv10.c
index 8100870c1c..34e54d9cd7 100644
--- a/target/linux/etrax/files/drivers/usb/host/hc-crisv10.c
+++ b/target/linux/etrax/files/drivers/usb/host/hc-crisv10.c
@@ -33,7 +33,7 @@
/***************************************************************************/
/***************************************************************************/
-#define VERSION "1.00-openwrt_diff"
+#define VERSION "1.00-openwrt_diff-v1"
#define COPYRIGHT "(c) 2005, 2006 Axis Communications AB"
#define DESCRIPTION "ETRAX 100LX USB Host Controller"
diff --git a/target/linux/etrax/modules.mk b/target/linux/etrax/modules.mk
deleted file mode 100644
index 5aef152cd8..0000000000
--- a/target/linux/etrax/modules.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define KernelPackage/usb-etrax
- SUBMENU:=$(USB_MENU)
- 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,1)
- $(call AddDepends/usb,@TARGET_etrax)
-endef
-
-define KernelPackage/usb-etrax/description
- Kernel support for the ETRAX USB host controller
-endef
-
-$(eval $(call KernelPackage,usb-etrax))
diff --git a/target/linux/etrax/patches-2.6.32/300-usb_support.patch b/target/linux/etrax/patches-2.6.32/300-usb_support.patch
index 0a0f81f98c..681bccc90e 100644
--- a/target/linux/etrax/patches-2.6.32/300-usb_support.patch
+++ b/target/linux/etrax/patches-2.6.32/300-usb_support.patch
@@ -18,14 +18,3 @@
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