summaryrefslogtreecommitdiff
path: root/include/led.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-10 17:34:56 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-15 01:38:57 (GMT)
commit9413ad4f0def2e06a5042106a6e1650a1aa03a5a (patch)
treec5c98725d3892bdda04e907ec2500502f16435b2 /include/led.h
parent8f4b612333ee0381eedf767c1c005a830886df27 (diff)
downloadu-boot-fsl-qoriq-9413ad4f0def2e06a5042106a6e1650a1aa03a5a.tar.xz
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/led.h')
-rw-r--r--include/led.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/led.h b/include/led.h
index bbab4d1..8c107e2 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,
};