7019f047798606983eba923c45a104bf53c381b7
[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-heartbeat
28 SUBMENU:=$(LEDS_MENU)
29 TITLE:=LED Heartbeat Trigger
30 KCONFIG:=CONFIG_LEDS_TRIGGER_HEARTBEAT
31 FILES:=$(LED_TRIGGER_DIR)/ledtrig-heartbeat.ko
32 AUTOLOAD:=$(call AutoLoad,50,ledtrig-heartbeat)
33 endef
34
35 define KernelPackage/ledtrig-heartbeat/description
36 Kernel module that allows LEDs to blink like heart beat
37 endef
38
39 $(eval $(call KernelPackage,ledtrig-heartbeat))
40
41
42 define KernelPackage/ledtrig-gpio
43 SUBMENU:=$(LEDS_MENU)
44 TITLE:=LED GPIO Trigger
45 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
46 FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
47 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
48 endef
49
50 define KernelPackage/ledtrig-gpio/description
51 Kernel module that allows LEDs to be controlled by gpio events
52 endef
53
54 $(eval $(call KernelPackage,ledtrig-gpio))
55
56
57 define KernelPackage/ledtrig-netdev
58 SUBMENU:=$(LEDS_MENU)
59 TITLE:=LED NETDEV Trigger
60 KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
61 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko
62 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
63 endef
64
65 define KernelPackage/ledtrig-netdev/description
66 Kernel module to drive LEDs based on network activity
67 endef
68
69 $(eval $(call KernelPackage,ledtrig-netdev))
70
71
72 define KernelPackage/ledtrig-default-on
73 SUBMENU:=$(LEDS_MENU)
74 TITLE:=LED Default ON Trigger
75 KCONFIG:=CONFIG_LEDS_TRIGGER_DEFAULT_ON
76 FILES:=$(LED_TRIGGER_DIR)/ledtrig-default-on.ko
77 AUTOLOAD:=$(call AutoLoad,50,ledtrig-default-on,1)
78 endef
79
80 define KernelPackage/ledtrig-default-on/description
81 Kernel module that allows LEDs to be initialised in the ON state
82 endef
83
84 $(eval $(call KernelPackage,ledtrig-default-on))
85
86
87 define KernelPackage/ledtrig-timer
88 SUBMENU:=$(LEDS_MENU)
89 TITLE:=LED Timer Trigger
90 KCONFIG:=CONFIG_LEDS_TRIGGER_TIMER
91 FILES:=$(LED_TRIGGER_DIR)/ledtrig-timer.ko
92 AUTOLOAD:=$(call AutoLoad,50,ledtrig-timer,1)
93 endef
94
95 define KernelPackage/ledtrig-timer/description
96 Kernel module that allows LEDs to be controlled by a programmable timer
97 via sysfs
98 endef
99
100 $(eval $(call KernelPackage,ledtrig-timer))
101
102
103 define KernelPackage/ledtrig-transient
104 SUBMENU:=$(LEDS_MENU)
105 TITLE:=LED Transient Trigger
106 KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
107 FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
108 AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
109 endef
110
111 define KernelPackage/ledtrig-transient/description
112 Kernel module that allows LEDs one time activation of a transient state.
113 endef
114
115 $(eval $(call KernelPackage,ledtrig-transient))
116
117
118 define KernelPackage/ledtrig-oneshot
119 SUBMENU:=$(LEDS_MENU)
120 TITLE:=LED One-Shot Trigger
121 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
122 FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
123 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
124 endef
125
126 define KernelPackage/ledtrig-oneshot/description
127 Kernel module that allows LEDs to be triggered by sporadic events in
128 one-shot pulses
129 endef
130
131 $(eval $(call KernelPackage,ledtrig-oneshot))
132
133
134 define KernelPackage/leds-pca963x
135 SUBMENU:=$(LEDS_MENU)
136 TITLE:=PCA963x LED support
137 DEPENDS:=+kmod-i2c-core
138 KCONFIG:=CONFIG_LEDS_PCA963X
139 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
140 AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
141 endef
142
143 define KernelPackage/leds-pca963x/description
144 Driver for the NXP PCA963x I2C LED controllers.
145 endef
146
147 $(eval $(call KernelPackage,leds-pca963x))