From 963ec80d628b03bfa34fd1e028d09157e246f245 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 23 Feb 2006 16:53:45 +0000 Subject: [PATCH] Added support for most common USB serial adapters, closes #321 SVN-Revision: 3268 --- openwrt/target/linux/Config.in | 25 +++++++++++++++++++ .../control/kmod-usb-serial-belkin.control | 6 +++++ .../control/kmod-usb-serial-ftdi.control | 6 +++++ .../control/kmod-usb-serial-mct-u232.control | 6 +++++ .../control/kmod-usb-serial-pl2303.control | 6 +++++ .../control/kmod-usb-serial-visor.control | 7 ++++++ .../linux/control/kmod-usb-serial.control | 4 ++- openwrt/target/linux/linux-2.4/Makefile | 15 +++++++++++ openwrt/target/linux/linux-2.4/config/brcm | 10 ++++---- 9 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 openwrt/target/linux/control/kmod-usb-serial-belkin.control create mode 100644 openwrt/target/linux/control/kmod-usb-serial-ftdi.control create mode 100644 openwrt/target/linux/control/kmod-usb-serial-mct-u232.control create mode 100644 openwrt/target/linux/control/kmod-usb-serial-pl2303.control create mode 100644 openwrt/target/linux/control/kmod-usb-serial-visor.control diff --git a/openwrt/target/linux/Config.in b/openwrt/target/linux/Config.in index 8a84ed3605..233711dee6 100644 --- a/openwrt/target/linux/Config.in +++ b/openwrt/target/linux/Config.in @@ -229,6 +229,31 @@ config BR2_PACKAGE_KMOD_USB_SERIAL default m depends BR2_PACKAGE_KMOD_USB_CONTROLLER +config BR2_PACKAGE_KMOD_USB_SERIAL_BELKIN + tristate "Support for Belkin USB-to-serial converters" + default m + depends BR2_PACKAGE_KMOD_USB_SERIAL + +config BR2_PACKAGE_KMOD_USB_SERIAL_FTDI + tristate "Support for FTDI USB-to-serial converterr" + default m + depends BR2_PACKAGE_KMOD_USB_SERIAL + +config BR2_PACKAGE_KMOD_USB_SERIAL_MCT_U232 + tristate "Support for Magic Control Technology USB-to-Serial converters" + default m + depends BR2_PACKAGE_KMOD_USB_SERIAL + +config BR2_PACKAGE_KMOD_USB_SERIAL_PL2303 + tristate "Support for Prolific PL2303 USB-to-Serial converters" + default m + depends BR2_PACKAGE_KMOD_USB_SERIAL + +config BR2_PACKAGE_KMOD_USB_SERIAL_VISOR + tristate "Support for Handspring Visor / Palm m50x / Sony Clie Driver" + default m + depends BR2_PACKAGE_KMOD_USB_SERIAL + config BR2_PACKAGE_KMOD_USB_STORAGE tristate "Support for USB storage devices" default m diff --git a/openwrt/target/linux/control/kmod-usb-serial-belkin.control b/openwrt/target/linux/control/kmod-usb-serial-belkin.control new file mode 100644 index 0000000000..708cc44351 --- /dev/null +++ b/openwrt/target/linux/control/kmod-usb-serial-belkin.control @@ -0,0 +1,6 @@ +Package: kmod-usb-serial-belkin +Priority: optional +Section: sys +Maintainer: OpenWrt Developers Team +Source: buildroot internal +Description: Kernel Support for Belkin USB-to-Serial converters diff --git a/openwrt/target/linux/control/kmod-usb-serial-ftdi.control b/openwrt/target/linux/control/kmod-usb-serial-ftdi.control new file mode 100644 index 0000000000..16bcdca254 --- /dev/null +++ b/openwrt/target/linux/control/kmod-usb-serial-ftdi.control @@ -0,0 +1,6 @@ +Package: kmod-usb-serial-ftdi +Priority: optional +Section: sys +Maintainer: OpenWrt Developers Team +Source: buildroot internal +Description: Kernel Support for FTDI USB-to-Serial converters diff --git a/openwrt/target/linux/control/kmod-usb-serial-mct-u232.control b/openwrt/target/linux/control/kmod-usb-serial-mct-u232.control new file mode 100644 index 0000000000..00f2038bf0 --- /dev/null +++ b/openwrt/target/linux/control/kmod-usb-serial-mct-u232.control @@ -0,0 +1,6 @@ +Package: kmod-usb-serial-mct-u232 +Priority: optional +Section: sys +Maintainer: OpenWrt Developers Team +Source: buildroot internal +Description: Kernel Support for Magic Control Technology USB-to-Serial converters diff --git a/openwrt/target/linux/control/kmod-usb-serial-pl2303.control b/openwrt/target/linux/control/kmod-usb-serial-pl2303.control new file mode 100644 index 0000000000..bccbdd8924 --- /dev/null +++ b/openwrt/target/linux/control/kmod-usb-serial-pl2303.control @@ -0,0 +1,6 @@ +Package: kmod-usb-serial-pl2303 +Priority: optional +Section: sys +Maintainer: OpenWrt Developers Team +Source: buildroot internal +Description: Kernel Support for Prolific PL2303 USB-to-Serial converters diff --git a/openwrt/target/linux/control/kmod-usb-serial-visor.control b/openwrt/target/linux/control/kmod-usb-serial-visor.control new file mode 100644 index 0000000000..7b993beafd --- /dev/null +++ b/openwrt/target/linux/control/kmod-usb-serial-visor.control @@ -0,0 +1,7 @@ +Package: kmod-usb-serial-visor +Priority: optional +Section: sys +Maintainer: OpenWrt Developers Team +Source: buildroot internal +Description: Kernel Support for Handspring Visor / Palm m50x / Sony Clie +Driver diff --git a/openwrt/target/linux/control/kmod-usb-serial.control b/openwrt/target/linux/control/kmod-usb-serial.control index d29a24236e..dda5f9d01a 100644 --- a/openwrt/target/linux/control/kmod-usb-serial.control +++ b/openwrt/target/linux/control/kmod-usb-serial.control @@ -1,4 +1,6 @@ Package: kmod-usb-serial Priority: optional Section: sys -Description: Kernel modules for serial USB support +Maintainer: OpenWrt Developers Team +Source: buildroot internal +Description: Kernel Support for USB-to-Serial converters diff --git a/openwrt/target/linux/linux-2.4/Makefile b/openwrt/target/linux/linux-2.4/Makefile index 1afe4d916a..e1d970be38 100644 --- a/openwrt/target/linux/linux-2.4/Makefile +++ b/openwrt/target/linux/linux-2.4/Makefile @@ -139,6 +139,21 @@ $(eval $(call KMOD_template,USB_STORAGE,usb-storage,\ $(eval $(call KMOD_template,USB_SERIAL,usb-serial,\ $(MODULES_DIR)/kernel/drivers/usb/serial/*.o \ ,CONFIG_USB_SERIAL,kmod-usb-core,60,usbserial)) +$(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\ + $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa.o \ +,CONFIG_USB_SERIAL_BELKIN,kmod-usb-serial,61,belkin_sa)) +$(eval $(call KMOD_template,USB_SERIAL_FTDI,usb-serial-ftdi,\ + $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio.o \ +,CONFIG_USB_SERIAL_FTDI_SIO,kmod-usb-serial,61,ftdi_sio)) +$(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\ + $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232.o \ +,CONFIG_USB_SERIAL_MCT_U232,kmod-usb-serial,61,mct_u232)) +$(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\ + $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303.o \ +,CONFIG_USB_SERIAL_PL2303,kmod-usb-serial,61,pl2303)) +$(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\ + $(MODULES_DIR)/kernel/drivers/usb/serial/visor.o \ +,CONFIG_USB_SERIAL_VISOR,kmod-usb-serial,61,visor)) $(eval $(call KMOD_template,USB_PRINTER,usb-printer,\ $(MODULES_DIR)/kernel/drivers/usb/printer.o \ ,CONFIG_USB_PRINTER,kmod-usb-core,60,printer)) diff --git a/openwrt/target/linux/linux-2.4/config/brcm b/openwrt/target/linux/linux-2.4/config/brcm index a74fbbb7d5..5e60fd0f8f 100644 --- a/openwrt/target/linux/linux-2.4/config/brcm +++ b/openwrt/target/linux/linux-2.4/config/brcm @@ -1204,22 +1204,22 @@ CONFIG_USB_PWC=m CONFIG_USB_SERIAL=m # CONFIG_USB_SERIAL_DEBUG is not set CONFIG_USB_SERIAL_GENERIC=y -# CONFIG_USB_SERIAL_BELKIN is not set +CONFIG_USB_SERIAL_BELKIN=m # CONFIG_USB_SERIAL_WHITEHEAT is not set # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set # CONFIG_USB_SERIAL_EMPEG is not set -# CONFIG_USB_SERIAL_FTDI_SIO is not set -# CONFIG_USB_SERIAL_VISOR is not set +CONFIG_USB_SERIAL_FTDI_SIO=m +CONFIG_USB_SERIAL_VISOR=m # CONFIG_USB_SERIAL_IPAQ is not set # CONFIG_USB_SERIAL_IR is not set # CONFIG_USB_SERIAL_EDGEPORT is not set # CONFIG_USB_SERIAL_EDGEPORT_TI is not set # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set # CONFIG_USB_SERIAL_KEYSPAN is not set -# CONFIG_USB_SERIAL_MCT_U232 is not set +CONFIG_USB_SERIAL_MCT_U232=m # CONFIG_USB_SERIAL_KLSI is not set # CONFIG_USB_SERIAL_KOBIL_SCT is not set -# CONFIG_USB_SERIAL_PL2303 is not set +CONFIG_USB_SERIAL_PL2303=m # CONFIG_USB_SERIAL_CYBERJACK is not set # CONFIG_USB_SERIAL_XIRCOM is not set # CONFIG_USB_SERIAL_OMNINET is not set -- 2.30.2