summaryrefslogtreecommitdiff
path: root/package/kernel/linux/modules/usb.mk
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2016-09-01 07:55:15 -0700
committerFelix Fietkau <nbd@nbd.name>2016-09-04 13:36:10 +0200
commit232893037a9c77bf7e880bd2f2c33b7df620d6e4 (patch)
treee955ec3fb1272306f7080bc088ae8c020de061f6 /package/kernel/linux/modules/usb.mk
parent3314bcf7152767d45785882f586832adcd2a5723 (diff)
downloadmtk-20170518-232893037a9c77bf7e880bd2f2c33b7df620d6e4.zip
mtk-20170518-232893037a9c77bf7e880bd2f2c33b7df620d6e4.tar.gz
mtk-20170518-232893037a9c77bf7e880bd2f2c33b7df620d6e4.tar.bz2
generic: add NET3380 UDC support
Add a patch to backport 5185c91385d73cdf79836eb8548e4726e43ae831 from Linux 4.8 adding USB2380 support to the NET2280 driver and create an OpenWrt menu option to select it as a module. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'package/kernel/linux/modules/usb.mk')
-rw-r--r--package/kernel/linux/modules/usb.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index a36993e..52c28c9 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1626,3 +1626,20 @@ define KernelPackage/usb3/description
endef
$(eval $(call KernelPackage,usb3))
+
+
+define KernelPackage/usb-net2280
+ TITLE:=Support for NetChip 228x PCI USB peripheral controller
+ KCONFIG:= CONFIG_USB_NET2280
+ DEPENDS:=@PCI_SUPPORT +kmod-usb-gadget
+ FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/net2280.ko
+ AUTOLOAD:=$(call AutoLoad,46,net2280)
+ $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-net2280/description
+ Kernel support for NetChip 228x / PLX USB338x PCI USB peripheral controller.
+endef
+
+$(eval $(call KernelPackage,usb-net2280))
+