diff options
author | Stefan Roese <sr@denx.de> | 2015-03-11 09:51:39 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-23 09:43:08 -0400 |
commit | a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37 (patch) | |
tree | f1356df3305111f9869b57b789eda0450391d582 /include/status_led.h | |
parent | ab93bf063bad1f82ccc727c55b8e2133a97c81f1 (diff) | |
download | u-boot-a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37.zip u-boot-a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37.tar.gz u-boot-a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37.tar.bz2 |
cmd_led: Extend led command to support blinking and more leds
This patch extends the U-Boot "led" command to support automatic blinking
by setting a blink frequency in milliseconds. Additionally the number of
supported LEDs is increased to 6 (0...5).
This will be used by the PCA9551 LED driver.
Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/status_led.h')
-rw-r--r-- | include/status_led.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/status_led.h b/include/status_led.h index 27f4bdf..a5e35df 100644 --- a/include/status_led.h +++ b/include/status_led.h @@ -105,6 +105,7 @@ typedef unsigned long led_id_t; extern void __led_toggle (led_id_t mask); extern void __led_init (led_id_t mask, int state); extern void __led_set (led_id_t mask, int state); +void __led_blink(led_id_t mask, int freq); #else # error Status LED configuration missing #endif |