leds.mk 9.4 KB

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