kernel: move mv88e6xxx fix to generic backports
[openwrt/openwrt.git] / package / kernel / linux / modules / leds.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 LEDS_MENU:=LED modules
9
10 define KernelPackage/leds-gpio
11 SUBMENU:=$(LEDS_MENU)
12 TITLE:=GPIO LED support
13 DEPENDS:= @GPIO_SUPPORT
14 KCONFIG:=CONFIG_LEDS_GPIO
15 FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.ko
16 AUTOLOAD:=$(call AutoLoad,60,leds-gpio,1)
17 endef
18
19 define KernelPackage/leds-gpio/description
20 Kernel module for LEDs on GPIO lines
21 endef
22
23 $(eval $(call KernelPackage,leds-gpio))
24
25 LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
26
27 define KernelPackage/ledtrig-activity
28 SUBMENU:=$(LEDS_MENU)
29 TITLE:=LED Activity Trigger
30 KCONFIG:=CONFIG_LEDS_TRIGGER_ACTIVITY
31 FILES:=$(LED_TRIGGER_DIR)/ledtrig-activity.ko
32 AUTOLOAD:=$(call AutoLoad,50,ledtrig-activity)
33 endef
34
35 define KernelPackage/ledtrig-activity/description
36 Kernel module that allows LEDs to blink based on system load
37 endef
38
39 $(eval $(call KernelPackage,ledtrig-activity))
40
41 define KernelPackage/ledtrig-gpio
42 SUBMENU:=$(LEDS_MENU)
43 TITLE:=LED GPIO Trigger
44 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
45 FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
46 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
47 endef
48
49 define KernelPackage/ledtrig-gpio/description
50 Kernel module that allows LEDs to be controlled by gpio events
51 endef
52
53 $(eval $(call KernelPackage,ledtrig-gpio))
54
55
56 define KernelPackage/ledtrig-transient
57 SUBMENU:=$(LEDS_MENU)
58 TITLE:=LED Transient Trigger
59 KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
60 FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
61 AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
62 endef
63
64 define KernelPackage/ledtrig-transient/description
65 Kernel module that allows LEDs one time activation of a transient state.
66 endef
67
68 $(eval $(call KernelPackage,ledtrig-transient))
69
70
71 define KernelPackage/ledtrig-oneshot
72 SUBMENU:=$(LEDS_MENU)
73 TITLE:=LED One-Shot Trigger
74 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
75 FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
76 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
77 endef
78
79 define KernelPackage/ledtrig-oneshot/description
80 Kernel module that allows LEDs to be triggered by sporadic events in
81 one-shot pulses
82 endef
83
84 $(eval $(call KernelPackage,ledtrig-oneshot))
85
86
87 define KernelPackage/leds-pca963x
88 SUBMENU:=$(LEDS_MENU)
89 TITLE:=PCA963x LED support
90 DEPENDS:=+kmod-i2c-core
91 KCONFIG:=CONFIG_LEDS_PCA963X
92 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
93 AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
94 endef
95
96 define KernelPackage/leds-pca963x/description
97 Driver for the NXP PCA963x I2C LED controllers.
98 endef
99
100 $(eval $(call KernelPackage,leds-pca963x))
101
102
103 define KernelPackage/leds-pwm
104 SUBMENU:=$(LEDS_MENU)
105 TITLE:=PWM driven LED Support
106 KCONFIG:=CONFIG_LEDS_PWM
107 DEPENDS:= @PWM_SUPPORT
108 FILES:=$(LINUX_DIR)/drivers/leds/leds-pwm.ko
109 AUTOLOAD:=$(call AutoLoad,60,leds-pwm,1)
110 endef
111
112 define KernelPackage/leds-pwm/description
113 This option enables support for pwm driven LEDs
114 endef
115
116 $(eval $(call KernelPackage,leds-pwm))