leds.mk 8.8 KB

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