c030b54b39e4f2a0a482cd75bc74a06d8f6908d6
[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-heartbeat
42 SUBMENU:=$(LEDS_MENU)
43 TITLE:=LED Heartbeat Trigger
44 KCONFIG:=CONFIG_LEDS_TRIGGER_HEARTBEAT
45 FILES:=$(LED_TRIGGER_DIR)/ledtrig-heartbeat.ko
46 AUTOLOAD:=$(call AutoLoad,50,ledtrig-heartbeat)
47 endef
48
49 define KernelPackage/ledtrig-heartbeat/description
50 Kernel module that allows LEDs to blink like heart beat
51 endef
52
53 $(eval $(call KernelPackage,ledtrig-heartbeat))
54
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-netdev
72 SUBMENU:=$(LEDS_MENU)
73 TITLE:=LED NETDEV Trigger
74 KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
75 FILES:=$(LINUX_DIR)/drivers/leds/trigger/ledtrig-netdev.ko
76 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
77 endef
78
79 define KernelPackage/ledtrig-netdev/description
80 Kernel module to drive LEDs based on network activity
81 endef
82
83 $(eval $(call KernelPackage,ledtrig-netdev))
84
85
86 define KernelPackage/ledtrig-default-on
87 SUBMENU:=$(LEDS_MENU)
88 TITLE:=LED Default ON Trigger
89 KCONFIG:=CONFIG_LEDS_TRIGGER_DEFAULT_ON
90 FILES:=$(LED_TRIGGER_DIR)/ledtrig-default-on.ko
91 AUTOLOAD:=$(call AutoLoad,50,ledtrig-default-on,1)
92 endef
93
94 define KernelPackage/ledtrig-default-on/description
95 Kernel module that allows LEDs to be initialised in the ON state
96 endef
97
98 $(eval $(call KernelPackage,ledtrig-default-on))
99
100
101 define KernelPackage/ledtrig-timer
102 SUBMENU:=$(LEDS_MENU)
103 TITLE:=LED Timer Trigger
104 KCONFIG:=CONFIG_LEDS_TRIGGER_TIMER
105 FILES:=$(LED_TRIGGER_DIR)/ledtrig-timer.ko
106 AUTOLOAD:=$(call AutoLoad,50,ledtrig-timer,1)
107 endef
108
109 define KernelPackage/ledtrig-timer/description
110 Kernel module that allows LEDs to be controlled by a programmable timer
111 via sysfs
112 endef
113
114 $(eval $(call KernelPackage,ledtrig-timer))
115
116
117 define KernelPackage/ledtrig-transient
118 SUBMENU:=$(LEDS_MENU)
119 TITLE:=LED Transient Trigger
120 KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
121 FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
122 AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
123 endef
124
125 define KernelPackage/ledtrig-transient/description
126 Kernel module that allows LEDs one time activation of a transient state.
127 endef
128
129 $(eval $(call KernelPackage,ledtrig-transient))
130
131
132 define KernelPackage/ledtrig-oneshot
133 SUBMENU:=$(LEDS_MENU)
134 TITLE:=LED One-Shot Trigger
135 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
136 FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
137 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
138 endef
139
140 define KernelPackage/ledtrig-oneshot/description
141 Kernel module that allows LEDs to be triggered by sporadic events in
142 one-shot pulses
143 endef
144
145 $(eval $(call KernelPackage,ledtrig-oneshot))
146
147
148 define KernelPackage/leds-pca963x
149 SUBMENU:=$(LEDS_MENU)
150 TITLE:=PCA963x LED support
151 DEPENDS:=+kmod-i2c-core
152 KCONFIG:=CONFIG_LEDS_PCA963X
153 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
154 AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
155 endef
156
157 define KernelPackage/leds-pca963x/description
158 Driver for the NXP PCA963x I2C LED controllers.
159 endef
160
161 $(eval $(call KernelPackage,leds-pca963x))