usb-serial: Add ch341 driver for 2.6.24 and later kernels. Closes #2968
authorAndy Boyett <agb@openwrt.org>
Thu, 24 Jul 2008 06:25:47 +0000 (06:25 +0000)
committerAndy Boyett <agb@openwrt.org>
Thu, 24 Jul 2008 06:25:47 +0000 (06:25 +0000)
SVN-Revision: 11914

package/kernel/modules/usb.mk

index a08fd52f770bc915d8f04155723b9810236da7e4..dae1b8089ee398ad480ae45eaf98cf52efa4739d 100644 (file)
@@ -256,7 +256,7 @@ $(eval $(call KernelPackage,usb-serial-airprime))
 
 
 define KernelPackage/usb-serial-belkin
-  $(call usbdep,kmod-usb-serial)
+  $(call usbdep,kmod-usb-serial @LINUX_2_6&&@!LINUX_2_6_23)
   TITLE:=Support for Belkin devices
   KCONFIG:=CONFIG_USB_SERIAL_BELKIN
   FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.$(LINUX_KMOD_SUFFIX)
@@ -270,6 +270,21 @@ endef
 $(eval $(call KernelPackage,usb-serial-belkin))
 
 
+define KernelPackage/usb-serial-ch341
+  $(call usbdep,kmod-usb-serial)
+  TITLE:=Support for CH341 devices
+  KCONFIG:=CONFIG_USB_SERIAL_CH341
+  FILES:=$(LINUX_DIR)/drivers/usb/serial/ch341.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,65,ch341)
+endef
+
+define KernelPackage/usb-serial-belkin/description
+ Kernel support for Winchiphead CH341 USB-to-Serial converters
+endef
+
+$(eval $(call KernelPackage,usb-serial-ch341))
+
+
 define KernelPackage/usb-serial-ftdi
   $(call usbdep,kmod-usb-serial)
   TITLE:=Support for FTDI devices