diff options
| author | Stefan Roese <[email protected]> | 2015-03-11 09:51:39 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2015-04-23 09:43:08 -0400 |
| commit | a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37 (patch) | |
| tree | f1356df3305111f9869b57b789eda0450391d582 /include | |
| parent | ab93bf063bad1f82ccc727c55b8e2133a97c81f1 (diff) | |
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -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 27f4bdfa877..a5e35df80ac 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 |
