leds.mk 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. LEDS_MENU:=LED modules
  8. define KernelPackage/leds-gpio
  9. SUBMENU:=$(LEDS_MENU)
  10. TITLE:=GPIO LED support
  11. DEPENDS:= @GPIO_SUPPORT
  12. KCONFIG:=CONFIG_LEDS_GPIO
  13. FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.ko
  14. AUTOLOAD:=$(call AutoLoad,60,leds-gpio,1)
  15. endef
  16. define KernelPackage/leds-gpio/description
  17. Kernel module for LEDs on GPIO lines
  18. endef
  19. $(eval $(call KernelPackage,leds-gpio))
  20. define KernelPackage/led-group-multicolor
  21. SUBMENU:=$(LEDS_MENU)
  22. TITLE:=LEDs group multi-color support
  23. KCONFIG:= \
  24. CONFIG_LEDS_CLASS_MULTICOLOR \
  25. CONFIG_LEDS_GROUP_MULTICOLOR
  26. FILES:=$(LINUX_DIR)/drivers/leds/rgb/leds-group-multicolor.ko
  27. AUTOLOAD:=$(call AutoProbe,led-group-multi-color)
  28. endef
  29. define KernelPackage/led-group-multi-color/description
  30. This option enables support for monochrome LEDs that are grouped
  31. into multicolor LEDs which is useful in the case where LEDs of
  32. different colors are physically grouped in a single multi-color LED
  33. and driven by a controller that does not have multi-color support.
  34. endef
  35. $(eval $(call KernelPackage,led-group-multi-color))
  36. LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
  37. define KernelPackage/ledtrig-activity
  38. SUBMENU:=$(LEDS_MENU)
  39. TITLE:=LED Activity Trigger
  40. KCONFIG:=CONFIG_LEDS_TRIGGER_ACTIVITY
  41. FILES:=$(LED_TRIGGER_DIR)/ledtrig-activity.ko
  42. AUTOLOAD:=$(call AutoLoad,50,ledtrig-activity)
  43. endef
  44. define KernelPackage/ledtrig-activity/description
  45. Kernel module that allows LEDs to blink based on system load
  46. endef
  47. $(eval $(call KernelPackage,ledtrig-activity))
  48. define KernelPackage/ledtrig-audio
  49. SUBMENU:=$(LEDS_MENU)
  50. TITLE:=LED Audio Mute Trigger
  51. KCONFIG:=CONFIG_LEDS_TRIGGER_AUDIO
  52. FILES:=$(LED_TRIGGER_DIR)/ledtrig-audio.ko
  53. AUTOLOAD:=$(call AutoLoad,50,ledtrig-audio)
  54. endef
  55. define KernelPackage/ledtrig-audio/description
  56. Kernel module that allows LEDs to be controlled by audio drivers
  57. to follow audio mute and mic-mute changes.
  58. endef
  59. $(eval $(call KernelPackage,ledtrig-audio))
  60. define KernelPackage/ledtrig-gpio
  61. SUBMENU:=$(LEDS_MENU)
  62. TITLE:=LED GPIO Trigger
  63. KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
  64. FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
  65. AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
  66. endef
  67. define KernelPackage/ledtrig-gpio/description
  68. Kernel module that allows LEDs to be controlled by gpio events
  69. endef
  70. $(eval $(call KernelPackage,ledtrig-gpio))
  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. define KernelPackage/ledtrig-transient/description
  79. Kernel module that allows LEDs one time activation of a transient state.
  80. endef
  81. $(eval $(call KernelPackage,ledtrig-transient))
  82. define KernelPackage/ledtrig-oneshot
  83. SUBMENU:=$(LEDS_MENU)
  84. TITLE:=LED One-Shot Trigger
  85. KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
  86. FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
  87. AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
  88. endef
  89. define KernelPackage/ledtrig-oneshot/description
  90. Kernel module that allows LEDs to be triggered by sporadic events in
  91. one-shot pulses
  92. endef
  93. $(eval $(call KernelPackage,ledtrig-oneshot))
  94. define KernelPackage/ledtrig-pattern
  95. SUBMENU:=$(LEDS_MENU)
  96. TITLE:=LED Pattern Trigger
  97. KCONFIG:=CONFIG_LEDS_TRIGGER_PATTERN
  98. FILES:=$(LED_TRIGGER_DIR)/ledtrig-pattern.ko
  99. AUTOLOAD:=$(call AutoLoad,50,ledtrig-pattern)
  100. endef
  101. define KernelPackage/ledtrig-pattern/description
  102. This allows LEDs to be controlled by a software or hardware pattern
  103. which is a series of tuples, of brightness and duration (ms).
  104. endef
  105. $(eval $(call KernelPackage,ledtrig-pattern))
  106. define KernelPackage/ledtrig-tty
  107. SUBMENU:=$(LEDS_MENU)
  108. TITLE:=LED Trigger for TTY devices
  109. KCONFIG:=CONFIG_LEDS_TRIGGER_TTY
  110. FILES:=$(LED_TRIGGER_DIR)/ledtrig-tty.ko
  111. AUTOLOAD:=$(call AutoLoad,50,ledtrig-tty)
  112. endef
  113. define KernelPackage/ledtrig-tty/description
  114. This allows LEDs to be controlled by activity on ttys which includes
  115. serial devices like '/dev/ttyS0'.
  116. endef
  117. $(eval $(call KernelPackage,ledtrig-tty))
  118. define KernelPackage/leds-apu
  119. SUBMENU:=$(LEDS_MENU)
  120. TITLE:=PC Engines APU1 LED support
  121. DEPENDS:= @GPIO_SUPPORT @TARGET_x86
  122. KCONFIG:=CONFIG_LEDS_APU
  123. FILES:=$(LINUX_DIR)/drivers/leds/leds-apu.ko
  124. AUTOLOAD:=$(call AutoLoad,60,leds-apu,1)
  125. endef
  126. define KernelPackage/leds-apu/description
  127. Driver for the PC Engines APU1 LEDs.
  128. endef
  129. $(eval $(call KernelPackage,leds-apu))
  130. define KernelPackage/leds-ktd202x
  131. SUBMENU:=LED modules
  132. TITLE:=LED support for KTD202x Chips
  133. DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c
  134. KCONFIG:=CONFIG_LEDS_KTD202X
  135. FILES:= $(LINUX_DIR)/drivers/leds/rgb/leds-ktd202x.ko
  136. AUTOLOAD:=$(call AutoProbe,leds-ktd202x,1)
  137. endef
  138. define KernelPackage/leds-ktd202x/description
  139. This option enables support for the Kinetic KTD2026/KTD2027
  140. RGB/White LED driver found in different BQ mobile phones.
  141. It is a 3 or 4 channel LED driver programmed via an I2C interface.
  142. endef
  143. $(eval $(call KernelPackage,leds-ktd202x))
  144. define KernelPackage/leds-mlxcpld
  145. SUBMENU:=$(LEDS_MENU)
  146. TITLE:=LED support for the Mellanox boards
  147. DEPENDS:=@TARGET_x86
  148. KCONFIG:=CONFIG_LEDS_MLXCPLD
  149. FILES:=$(LINUX_DIR)/drivers/leds/leds-mlxcpld.ko
  150. AUTOLOAD:=$(call AutoProbe,leds-mlxcpld)
  151. endef
  152. define KernelPackage/leds-mlxcpld/description
  153. This option enables support for the LEDs on the Mellanox
  154. boards.
  155. endef
  156. $(eval $(call KernelPackage,leds-mlxcpld))
  157. define KernelPackage/leds-pca955x
  158. SUBMENU:=$(LEDS_MENU)
  159. TITLE:=LED driver for PCA955x I2C chips
  160. DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
  161. KCONFIG:=CONFIG_LEDS_PCA955X \
  162. CONFIG_LEDS_PCA955X_GPIO=y
  163. FILES:=$(LINUX_DIR)/drivers/leds/leds-pca955x.ko
  164. AUTOLOAD:=$(call AutoLoad,60,leds-pca955x,1)
  165. endef
  166. define KernelPackage/leds-pca955x/description
  167. This option enables support for LEDs connected to PCA955x
  168. LED driver chips accessed via the I2C bus. Supported
  169. devices include PCA9550, PCA9551, PCA9552, and PCA9553.
  170. endef
  171. $(eval $(call KernelPackage,leds-pca955x))
  172. define KernelPackage/leds-pca963x
  173. SUBMENU:=$(LEDS_MENU)
  174. TITLE:=PCA963x LED support
  175. DEPENDS:=+kmod-i2c-core
  176. KCONFIG:=CONFIG_LEDS_PCA963X
  177. FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
  178. AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
  179. endef
  180. define KernelPackage/leds-pca963x/description
  181. Driver for the NXP PCA963x I2C LED controllers.
  182. endef
  183. $(eval $(call KernelPackage,leds-pca963x))
  184. define KernelPackage/leds-pwm
  185. SUBMENU:=$(LEDS_MENU)
  186. TITLE:=PWM driven LED Support
  187. KCONFIG:=CONFIG_LEDS_PWM
  188. DEPENDS:= @PWM_SUPPORT
  189. FILES:=$(LINUX_DIR)/drivers/leds/leds-pwm.ko
  190. AUTOLOAD:=$(call AutoLoad,60,leds-pwm,1)
  191. endef
  192. define KernelPackage/leds-pwm/description
  193. This option enables support for pwm driven LEDs
  194. endef
  195. $(eval $(call KernelPackage,leds-pwm))
  196. define KernelPackage/leds-tlc591xx
  197. SUBMENU:=$(LEDS_MENU)
  198. TITLE:=LED driver for TLC59108 and TLC59116 controllers
  199. DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c
  200. KCONFIG:=CONFIG_LEDS_TLC591XX
  201. FILES:=$(LINUX_DIR)/drivers/leds/leds-tlc591xx.ko
  202. AUTOLOAD:=$(call AutoLoad,60,leds-tlc591xx,1)
  203. endef
  204. define KernelPackage/leds-tlc591xx/description
  205. This option enables support for Texas Instruments TLC59108
  206. and TLC59116 LED controllers.
  207. endef
  208. $(eval $(call KernelPackage,leds-tlc591xx))
  209. define KernelPackage/leds-uleds
  210. SUBMENU:=$(LEDS_MENU)
  211. TITLE:=Userspace LEDs
  212. KCONFIG:=CONFIG_LEDS_USER
  213. FILES:=$(LINUX_DIR)/drivers/leds/uleds.ko
  214. AUTOLOAD:=$(call AutoLoad,60,uleds,1)
  215. endef
  216. define KernelPackage/leds-uleds/description
  217. This option enables support for userspace LEDs.
  218. endef
  219. $(eval $(call KernelPackage,leds-uleds))
  220. define KernelPackage/input-leds
  221. SUBMENU:=$(LEDS_MENU)
  222. TITLE:=Input device LED support
  223. DEPENDS:=+kmod-input-core
  224. KCONFIG:=CONFIG_INPUT_LEDS
  225. FILES:=$(LINUX_DIR)/drivers/input/input-leds.ko
  226. AUTOLOAD:=$(call AutoLoad,50,input-leds,1)
  227. endef
  228. define KernelPackage/input-leds/description
  229. Provides support for LEDs on input devices- for example,
  230. keyboard num/caps/scroll lock.
  231. endef
  232. $(eval $(call KernelPackage,input-leds))
  233. define KernelPackage/leds-lp55xx-common
  234. SUBMENU:=$(LEDS_MENU)
  235. TITLE:=LED common driver for LP5521/LP5523/LP55231/LP5562 controllers
  236. DEPENDS:=+kmod-i2c-core
  237. KCONFIG:=CONFIG_LEDS_LP55XX_COMMON
  238. FILES:=$(LINUX_DIR)/drivers/leds/leds-lp55xx-common.ko
  239. AUTOLOAD:=$(call AutoLoad,60,leds-lp55xx-common,1)
  240. endef
  241. define KernelPackage/leds-lp55xx-common/description
  242. This option enables support for Texas Instruments
  243. LP5521/LP5523/LP55231/LP5562 common driver.
  244. endef
  245. $(eval $(call KernelPackage,leds-lp55xx-common))
  246. define KernelPackage/leds-lp5562
  247. SUBMENU:=$(LEDS_MENU)
  248. TITLE:=LED driver for LP5562 controllers
  249. DEPENDS:=+kmod-i2c-core +kmod-leds-lp55xx-common
  250. KCONFIG:=CONFIG_LEDS_LP5562
  251. FILES:=$(LINUX_DIR)/drivers/leds/leds-lp5562.ko
  252. AUTOLOAD:=$(call AutoLoad,60,leds-lp5562,1)
  253. endef
  254. define KernelPackage/leds-lp5562/description
  255. This option enables support for Texas Instruments LP5562
  256. LED controllers.
  257. endef
  258. $(eval $(call KernelPackage,leds-lp5562))