leds.mk 9.9 KB

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