summaryrefslogtreecommitdiffstats
path: root/drivers/led/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-13 10:33:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 08:23:20 +0200
commitaea9aba24910b8aa89a889e8d826b8dc69d3d48b (patch)
tree51469149a38ca550f1e041a70603078ca630332a /drivers/led/Kconfig
parent441e9f5a72b245b671118f3e771eb129834a7a34 (diff)
downloadbarebox-aea9aba24910b8aa89a889e8d826b8dc69d3d48b.tar.gz
barebox-aea9aba24910b8aa89a889e8d826b8dc69d3d48b.tar.xz
led: add blinking/flashing and led_blink_pattern interface
So far blinking/flashing LEDs is only supported on led-trigger level. Even without triggers it useful to be able to blink/flash LEDs, so add this functionality to the LED core. A led_blink_pattern consists of a number of on and off-periods which are described in an array. Using such an array you can encode nearly every blink pattern you need. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/led/Kconfig')
-rw-r--r--drivers/led/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig
index 155a78a7df..50f0d8f974 100644
--- a/drivers/led/Kconfig
+++ b/drivers/led/Kconfig
@@ -1,5 +1,6 @@
menuconfig LED
bool "LED support"
+ select POLLER
if LED