summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-10-04 12:32:13 +0200
committerRafał Miłecki <rafal@milecki.pl>2016-10-18 14:27:14 +0200
commit81fd64df81afbc049f07deeddc05f7b9f83cbe62 (patch)
tree69e5690db77c90d8b0768b6a307cfe897e1f8d3d
parenta92f57599cea2f1cd3db88b49031b2de1eb3859e (diff)
downloadmtk-20170518-81fd64df81afbc049f07deeddc05f7b9f83cbe62.zip
mtk-20170518-81fd64df81afbc049f07deeddc05f7b9f83cbe62.tar.gz
mtk-20170518-81fd64df81afbc049f07deeddc05f7b9f83cbe62.tar.bz2
kernel: add package for usbport LED trigger
This is upstream alternative for LEDE's ledtrig-usbdev. It's main advantages are: 1) Support for assigning more than 1 USB port to the LED 2) Setting proper state when activating with device already connected 3) FWIW it's an upstream driver Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r--package/kernel/linux/modules/usb.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index d25f7c1..5f90e86 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -36,6 +36,25 @@ define AddDepends/usb
endef
+define KernelPackage/usb-ledtrig-usbport
+ TITLE:=LED trigger for USB ports
+ KCONFIG:=CONFIG_USB_LEDS_TRIGGER_USBPORT
+ DEPENDS:=@!LINUX_3_18
+ FILES:=$(LINUX_DIR)/drivers/usb/core/ledtrig-usbport.ko
+ AUTOLOAD:=$(call AutoLoad,50,ledtrig-usbport)
+ $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-ledtrig-usbport/description
+ This driver allows LEDs to be controlled by USB events. Enabling this
+ trigger allows specifying list of USB ports that should turn on LED
+ when some USB device gets connected.
+ If possible it should be prefered over similar ledtrig-usbdev.
+endef
+
+$(eval $(call KernelPackage,usb-ledtrig-usbport))
+
+
define KernelPackage/usb-musb-hdrc
TITLE:=Support for Mentor Graphics silicon dual role USB
KCONFIG:= \