diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-10-01 14:24:38 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-10 16:02:20 -0600 |
commit | aad8cfa3ca4b1bb18c4a55d2bbee4f58d3095d64 (patch) | |
tree | 2a9f00dc48586d39d6cd9dde0da623d88adea60e /drivers/ddr/fsl/main.c | |
parent | fc55ae03fdda244b74756c9dedb16143dbe002bd (diff) |
led: implement LED activity API
Implement LED activity API similar to BOOT LED API.
Usual activity might be a file transfer with TFTP, a flash write...
User of this API will call led_activity_on/off/blink() to signal these
kind of activity.
New Kconfig is implemented similar to BOOT LED, LED_ACTIVITY to
enable support for it.
It's introduced a new /options/u-boot property "activity-led" and
"activity-led-period" to define the activity LED label and the
default period when the activity LED is set to blink mode.
If "activity-led-period" is not defined, the value of 250 (ms) is
used by default.
If CONFIG_LED_BLINK or CONFIG_LED_SW_BLINK is not enabled,
led_boot_blink call will fallback to simple LED ON.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/ddr/fsl/main.c')
0 files changed, 0 insertions, 0 deletions