summaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-10 11:34:59 -0600
committerSimon Glass <sjg@chromium.org>2017-04-14 19:38:57 -0600
commitffe2052d6e8add8ea66a7d1647255aa28715f067 (patch)
tree6f349f635e710ab046cc2589983bc7b05101f2c1 /cmd/Kconfig
parent21c340849dc551fd49a17633a090fd1d52d75049 (diff)
dm: led: Add a new 'led' command
When driver model is used for LEDs, provide a command to allow LED access. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ziping Chen <techping.chan@gmail.com>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 661ae7a98c..13dc46a174 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -667,6 +667,15 @@ config CMD_CACHE
help
Enable the "icache" and "dcache" commands
+config CMD_LED
+ bool "led"
+ default y if LED
+ help
+ Enable the 'led' command which allows for control of LEDs supported
+ by the board. The LEDs can be listed with 'led list' and controlled
+ with led on/off/togle/blink. Any LED drivers can be controlled with
+ this command, e.g. led_gpio.
+
config CMD_TIME
bool "time"
help