summaryrefslogtreecommitdiffstats
path: root/drivers/led/Kconfig
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-07-02 20:30:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-09 20:00:19 +0200
commit34934c183b2880340c9ee8f7f36da5a77bffea46 (patch)
treea44d302e6896f6224698892e9db80e2073e72bee /drivers/led/Kconfig
parentcf31688b6a6981bf6e66ec8587d0ccf3dd72a594 (diff)
downloadbarebox-34934c183b2880340c9ee8f7f36da5a77bffea46.tar.gz
barebox-34934c183b2880340c9ee8f7f36da5a77bffea46.tar.xz
LED: add support for device tree parsing of gpio-leds
This adds a driver option to probe GPIO LEDs from device tree compatible with "gpio-leds" device tree nodes. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/led/Kconfig')
-rw-r--r--drivers/led/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig
index 8ca6ab8e44..3ead82e031 100644
--- a/drivers/led/Kconfig
+++ b/drivers/led/Kconfig
@@ -7,6 +7,10 @@ config LED_GPIO
bool "gpio LED support"
depends on GENERIC_GPIO
+config LED_GPIO_OF
+ bool "support parsing gpio LEDs from device tree"
+ depends on LED_GPIO && OFTREE
+
config LED_GPIO_RGB
bool "gpio rgb LED support"
depends on LED_GPIO