ce72465ce4d823f323662c9ed975a836117c5223
[openwrt/staging/dangole.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-audio
42 SUBMENU:=$(LEDS_MENU)
43 TITLE:=LED Audio Mute Trigger
44 KCONFIG:=CONFIG_LEDS_TRIGGER_AUDIO
45 FILES:=$(LED_TRIGGER_DIR)/ledtrig-audio.ko
46 AUTOLOAD:=$(call AutoLoad,50,ledtrig-audio)
47 endef
48
49 define KernelPackage/ledtrig-audio/description
50 Kernel module that allows LEDs to be controlled by audio drivers
51 to follow audio mute and mic-mute changes.
52 endef
53
54 $(eval $(call KernelPackage,ledtrig-audio))
55
56 define KernelPackage/ledtrig-gpio
57 SUBMENU:=$(LEDS_MENU)
58 TITLE:=LED GPIO Trigger
59 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
60 FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
61 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
62 endef
63
64 define KernelPackage/ledtrig-gpio/description
65 Kernel module that allows LEDs to be controlled by gpio events
66 endef
67
68 $(eval $(call KernelPackage,ledtrig-gpio))
69
70
71 define KernelPackage/ledtrig-transient
72 SUBMENU:=$(LEDS_MENU)
73 TITLE:=LED Transient Trigger
74 KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
75 FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
76 AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
77 endef
78
79 define KernelPackage/ledtrig-transient/description
80 Kernel module that allows LEDs one time activation of a transient state.
81 endef
82
83 $(eval $(call KernelPackage,ledtrig-transient))
84
85
86 define KernelPackage/ledtrig-oneshot
87 SUBMENU:=$(LEDS_MENU)
88 TITLE:=LED One-Shot Trigger
89 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
90 FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
91 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
92 endef
93
94 define KernelPackage/ledtrig-oneshot/description
95 Kernel module that allows LEDs to be triggered by sporadic events in
96 one-shot pulses
97 endef
98
99 $(eval $(call KernelPackage,ledtrig-oneshot))
100
101
102 define KernelPackage/ledtrig-pattern
103 SUBMENU:=$(LEDS_MENU)
104 TITLE:=LED Pattern Trigger
105 KCONFIG:=CONFIG_LEDS_TRIGGER_PATTERN
106 FILES:=$(LED_TRIGGER_DIR)/ledtrig-pattern.ko
107 AUTOLOAD:=$(call AutoLoad,50,ledtrig-pattern)
108 endef
109
110 define KernelPackage/ledtrig-pattern/description
111 This allows LEDs to be controlled by a software or hardware pattern
112 which is a series of tuples, of brightness and duration (ms).
113 endef
114
115 $(eval $(call KernelPackage,ledtrig-pattern))
116
117
118 define KernelPackage/ledtrig-tty
119 SUBMENU:=$(LEDS_MENU)
120 TITLE:=LED Trigger for TTY devices
121 DEPENDS:=@LINUX_5_15
122 KCONFIG:=CONFIG_LEDS_TRIGGER_TTY
123 FILES:=$(LED_TRIGGER_DIR)/ledtrig-tty.ko
124 AUTOLOAD:=$(call AutoLoad,50,ledtrig-tty)
125 endef
126
127 define KernelPackage/ledtrig-tty/description
128 This allows LEDs to be controlled by activity on ttys which includes
129 serial devices like '/dev/ttyS0'.
130 endef
131
132 $(eval $(call KernelPackage,ledtrig-tty))
133
134
135 define KernelPackage/leds-apu
136 SUBMENU:=$(LEDS_MENU)
137 TITLE:=PC Engines APU1 LED support
138 DEPENDS:= @GPIO_SUPPORT @TARGET_x86
139 KCONFIG:=CONFIG_LEDS_APU
140 FILES:=$(LINUX_DIR)/drivers/leds/leds-apu.ko
141 AUTOLOAD:=$(call AutoLoad,60,leds-apu,1)
142 endef
143
144 define KernelPackage/leds-apu/description
145 Driver for the PC Engines APU1 LEDs.
146 endef
147
148 $(eval $(call KernelPackage,leds-apu))
149
150
151 define KernelPackage/leds-pca955x
152 SUBMENU:=$(LEDS_MENU)
153 TITLE:=LED driver for PCA955x I2C chips
154 DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
155 KCONFIG:=CONFIG_LEDS_PCA955X \
156 CONFIG_LEDS_PCA955X_GPIO=y
157 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca955x.ko
158 AUTOLOAD:=$(call AutoLoad,60,leds-pca955x,1)
159 endef
160
161 define KernelPackage/leds-pca955x/description
162 This option enables support for LEDs connected to PCA955x
163 LED driver chips accessed via the I2C bus. Supported
164 devices include PCA9550, PCA9551, PCA9552, and PCA9553.
165 endef
166
167 $(eval $(call KernelPackage,leds-pca955x))
168
169
170 define KernelPackage/leds-pca963x
171 SUBMENU:=$(LEDS_MENU)
172 TITLE:=PCA963x LED support
173 DEPENDS:=+kmod-i2c-core
174 KCONFIG:=CONFIG_LEDS_PCA963X
175 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
176 AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
177 endef
178
179 define KernelPackage/leds-pca963x/description
180 Driver for the NXP PCA963x I2C LED controllers.
181 endef
182
183 $(eval $(call KernelPackage,leds-pca963x))
184
185
186 define KernelPackage/leds-pwm
187 SUBMENU:=$(LEDS_MENU)
188 TITLE:=PWM driven LED Support
189 KCONFIG:=CONFIG_LEDS_PWM
190 DEPENDS:= @PWM_SUPPORT
191 FILES:=$(LINUX_DIR)/drivers/leds/leds-pwm.ko
192 AUTOLOAD:=$(call AutoLoad,60,leds-pwm,1)
193 endef
194
195 define KernelPackage/leds-pwm/description
196 This option enables support for pwm driven LEDs
197 endef
198
199 $(eval $(call KernelPackage,leds-pwm))
200
201
202 define KernelPackage/leds-tlc591xx
203 SUBMENU:=$(LEDS_MENU)
204 TITLE:=LED driver for TLC59108 and TLC59116 controllers
205 DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c
206 KCONFIG:=CONFIG_LEDS_TLC591XX
207 FILES:=$(LINUX_DIR)/drivers/leds/leds-tlc591xx.ko
208 AUTOLOAD:=$(call AutoLoad,60,leds-tlc591xx,1)
209 endef
210
211 define KernelPackage/leds-tlc591xx/description
212 This option enables support for Texas Instruments TLC59108
213 and TLC59116 LED controllers.
214 endef
215
216 $(eval $(call KernelPackage,leds-tlc591xx))
217
218
219 define KernelPackage/leds-uleds
220 SUBMENU:=$(LEDS_MENU)
221 TITLE:=Userspace LEDs
222 KCONFIG:=CONFIG_LEDS_USER
223 FILES:=$(LINUX_DIR)/drivers/leds/uleds.ko
224 AUTOLOAD:=$(call AutoLoad,60,uleds,1)
225 endef
226
227 define KernelPackage/leds-uleds/description
228 This option enables support for userspace LEDs.
229 endef
230
231 $(eval $(call KernelPackage,leds-uleds))
232
233
234 define KernelPackage/input-leds
235 SUBMENU:=$(LEDS_MENU)
236 TITLE:=Input device LED support
237 DEPENDS:=+kmod-input-core
238 KCONFIG:=CONFIG_INPUT_LEDS
239 FILES:=$(LINUX_DIR)/drivers/input/input-leds.ko
240 AUTOLOAD:=$(call AutoLoad,50,input-leds,1)
241 endef
242
243 define KernelPackage/input-leds/description
244 Provides support for LEDs on input devices- for example,
245 keyboard num/caps/scroll lock.
246 endef
247
248 $(eval $(call KernelPackage,input-leds))