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 /drivers/misc | |
parent | ab93bf063bad1f82ccc727c55b8e2133a97c81f1 (diff) | |
download | u-boot-imx-a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37.zip u-boot-imx-a8eeaf2f7a9c3326cba5b1780b1a38f70c6c1f37.tar.gz u-boot-imx-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 'drivers/misc')
-rw-r--r-- | drivers/misc/status_led.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/misc/status_led.c b/drivers/misc/status_led.c index ed9adb2..9869d98 100644 --- a/drivers/misc/status_led.c +++ b/drivers/misc/status_led.c @@ -53,6 +53,20 @@ led_dev_t led_dev[] = { 0, }, #endif +#if defined(STATUS_LED_BIT4) + { STATUS_LED_BIT4, + STATUS_LED_STATE4, + STATUS_LED_PERIOD4, + 0, + }, +#endif +#if defined(STATUS_LED_BIT5) + { STATUS_LED_BIT5, + STATUS_LED_STATE5, + STATUS_LED_PERIOD5, + 0, + }, +#endif }; #define MAX_LED_DEV (sizeof(led_dev)/sizeof(led_dev_t)) |