From a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Wed, 11 Mar 2015 09:51:39 +0100 Subject: 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 Reviewed-by: Tom Rini --- include/status_led.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/status_led.h') 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 -- cgit v1.2.3