2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 define KernelPackage
/leds-gpio
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)
19 define KernelPackage
/leds-gpio
/description
20 Kernel module for LEDs on GPIO lines
23 $(eval
$(call KernelPackage
,leds-gpio
))
25 LED_TRIGGER_DIR
=$(LINUX_DIR
)/drivers
/leds
/trigger
27 define KernelPackage
/ledtrig-activity
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
)
35 define KernelPackage
/ledtrig-activity
/description
36 Kernel module that allows LEDs to blink based on system load
39 $(eval
$(call KernelPackage
,ledtrig-activity
))
41 define KernelPackage
/ledtrig-audio
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
)
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.
54 $(eval
$(call KernelPackage
,ledtrig-audio
))
56 define KernelPackage
/ledtrig-gpio
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
)
64 define KernelPackage
/ledtrig-gpio
/description
65 Kernel module that allows LEDs to be controlled by gpio events
68 $(eval
$(call KernelPackage
,ledtrig-gpio
))
71 define KernelPackage
/ledtrig-transient
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)
79 define KernelPackage
/ledtrig-transient
/description
80 Kernel module that allows LEDs one time activation of a transient state.
83 $(eval
$(call KernelPackage
,ledtrig-transient
))
86 define KernelPackage
/ledtrig-oneshot
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
)
94 define KernelPackage
/ledtrig-oneshot
/description
95 Kernel module that allows LEDs to be triggered by sporadic events in
99 $(eval
$(call KernelPackage
,ledtrig-oneshot
))
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
)
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
).
115 $(eval
$(call KernelPackage
,ledtrig-pattern
))
118 define KernelPackage
/ledtrig-tty
119 SUBMENU
:=$(LEDS_MENU
)
120 TITLE
:=LED Trigger for TTY devices
121 KCONFIG
:=CONFIG_LEDS_TRIGGER_TTY
122 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-tty.ko
123 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-tty
)
126 define KernelPackage
/ledtrig-tty
/description
127 This allows LEDs to be controlled by activity on ttys which includes
128 serial devices like
'/dev/ttyS0'.
131 $(eval
$(call KernelPackage
,ledtrig-tty
))
134 define KernelPackage
/leds-apu
135 SUBMENU
:=$(LEDS_MENU
)
136 TITLE
:=PC Engines APU1 LED support
137 DEPENDS
:= @GPIO_SUPPORT @TARGET_x86
138 KCONFIG
:=CONFIG_LEDS_APU
139 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-apu.ko
140 AUTOLOAD
:=$(call AutoLoad
,60,leds-apu
,1)
143 define KernelPackage
/leds-apu
/description
144 Driver for the PC Engines APU1 LEDs.
147 $(eval
$(call KernelPackage
,leds-apu
))
150 define KernelPackage
/leds-mlxcpld
151 SUBMENU
:=$(LEDS_MENU
)
152 TITLE
:=LED support for the Mellanox boards
153 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-mlxcpld.ko
154 KCONFIG
:=CONFIG_LEDS_MLXCPLD
155 AUTOLOAD
:=$(call AutoProbe
,leds-mlxcpld
)
158 define KernelPackage
/leds-mlxcpld
/description
159 This option enables support for the LEDs on the Mellanox
163 $(eval
$(call KernelPackage
,leds-mlxcpld
))
166 define KernelPackage
/leds-pca955x
167 SUBMENU
:=$(LEDS_MENU
)
168 TITLE
:=LED driver for PCA955x I2C chips
169 DEPENDS
:=@GPIO_SUPPORT
+kmod-i2c-core
170 KCONFIG
:=CONFIG_LEDS_PCA955X \
171 CONFIG_LEDS_PCA955X_GPIO
=y
172 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pca955x.ko
173 AUTOLOAD
:=$(call AutoLoad
,60,leds-pca955x
,1)
176 define KernelPackage
/leds-pca955x
/description
177 This option enables support for LEDs connected to PCA955x
178 LED driver chips accessed via the I2C bus. Supported
179 devices
include PCA9550
, PCA9551
, PCA9552
, and PCA9553.
182 $(eval
$(call KernelPackage
,leds-pca955x
))
185 define KernelPackage
/leds-pca963x
186 SUBMENU
:=$(LEDS_MENU
)
187 TITLE
:=PCA963x LED support
188 DEPENDS
:=+kmod-i2c-core
189 KCONFIG
:=CONFIG_LEDS_PCA963X
190 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pca963x.ko
191 AUTOLOAD
:=$(call AutoLoad
,60,leds-pca963x
,1)
194 define KernelPackage
/leds-pca963x
/description
195 Driver for the NXP PCA963x I2C LED controllers.
198 $(eval
$(call KernelPackage
,leds-pca963x
))
201 define KernelPackage
/leds-pwm
202 SUBMENU
:=$(LEDS_MENU
)
203 TITLE
:=PWM driven LED Support
204 KCONFIG
:=CONFIG_LEDS_PWM
205 DEPENDS
:= @PWM_SUPPORT
206 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pwm.ko
207 AUTOLOAD
:=$(call AutoLoad
,60,leds-pwm
,1)
210 define KernelPackage
/leds-pwm
/description
211 This option enables support for pwm driven LEDs
214 $(eval
$(call KernelPackage
,leds-pwm
))
217 define KernelPackage
/leds-tlc591xx
218 SUBMENU
:=$(LEDS_MENU
)
219 TITLE
:=LED driver for TLC59108 and TLC59116 controllers
220 DEPENDS
:=+kmod-i2c-core
+kmod-regmap-i2c
221 KCONFIG
:=CONFIG_LEDS_TLC591XX
222 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-tlc591xx.ko
223 AUTOLOAD
:=$(call AutoLoad
,60,leds-tlc591xx
,1)
226 define KernelPackage
/leds-tlc591xx
/description
227 This option enables support for Texas Instruments TLC59108
228 and TLC59116 LED controllers.
231 $(eval
$(call KernelPackage
,leds-tlc591xx
))
234 define KernelPackage
/leds-uleds
235 SUBMENU
:=$(LEDS_MENU
)
236 TITLE
:=Userspace LEDs
237 KCONFIG
:=CONFIG_LEDS_USER
238 FILES
:=$(LINUX_DIR
)/drivers
/leds
/uleds.ko
239 AUTOLOAD
:=$(call AutoLoad
,60,uleds
,1)
242 define KernelPackage
/leds-uleds
/description
243 This option enables support for userspace LEDs.
246 $(eval
$(call KernelPackage
,leds-uleds
))
249 define KernelPackage
/input-leds
250 SUBMENU
:=$(LEDS_MENU
)
251 TITLE
:=Input device LED support
252 DEPENDS
:=+kmod-input-core
253 KCONFIG
:=CONFIG_INPUT_LEDS
254 FILES
:=$(LINUX_DIR
)/drivers
/input
/input-leds.ko
255 AUTOLOAD
:=$(call AutoLoad
,50,input-leds
,1)
258 define KernelPackage
/input-leds
/description
259 Provides support for LEDs on input devices- for example
,
260 keyboard num
/caps
/scroll lock.
263 $(eval
$(call KernelPackage
,input-leds
))
266 define KernelPackage
/leds-lp55xx-common
267 SUBMENU
:=$(LEDS_MENU
)
268 TITLE
:=LED common driver for LP5521
/LP5523
/LP55231
/LP5562 controllers
269 DEPENDS
:=+kmod-i2c-core
270 KCONFIG
:=CONFIG_LEDS_LP55XX_COMMON
271 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-lp55xx-common.ko
272 AUTOLOAD
:=$(call AutoLoad
,60,leds-lp55xx-common
,1)
275 define KernelPackage
/leds-lp55xx-common
/description
276 This option enables support for Texas Instruments
277 LP5521
/LP5523
/LP55231
/LP5562 common driver.
280 $(eval
$(call KernelPackage
,leds-lp55xx-common
))
283 define KernelPackage
/leds-lp5562
284 SUBMENU
:=$(LEDS_MENU
)
285 TITLE
:=LED driver for LP5562 controllers
286 DEPENDS
:=+kmod-i2c-core
+kmod-leds-lp55xx-common
287 KCONFIG
:=CONFIG_LEDS_LP5562
288 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-lp5562.ko
289 AUTOLOAD
:=$(call AutoLoad
,60,leds-lp5562
,1)
292 define KernelPackage
/leds-lp5562
/description
293 This option enables support for Texas Instruments LP5562
297 $(eval
$(call KernelPackage
,leds-lp5562
))