summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-10 11:34:56 -0600
committerSimon Glass <sjg@chromium.org>2017-04-14 19:38:57 -0600
commit9413ad4f0def2e06a5042106a6e1650a1aa03a5a (patch)
treec5c98725d3892bdda04e907ec2500502f16435b2 /include
parent8f4b612333ee0381eedf767c1c005a830886df27 (diff)
dm: led: Support toggling LEDs
Add support for toggling an LED into the uclass interface. This can be efficiently implemented by the driver. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ziping Chen <techping.chan@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/led.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/led.h b/include/led.h
index bbab4d14c9..8c107e28e7 100644
--- a/include/led.h
+++ b/include/led.h
@@ -20,6 +20,7 @@ struct led_uc_plat {
enum led_state_t {
LEDST_OFF = 0,
LEDST_ON = 1,
+ LEDST_TOGGLE,
LEDST_COUNT,
};