leds.mk 9.5 KB

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