[PATCH v6 2/3] led: Implement software led blinking
Simon Glass
sjg at chromium.org
Sat Jul 20 14:36:07 CEST 2024
On Fri, 19 Jul 2024 at 10:12, Mikhail Kshevetskiy
<mikhail.kshevetskiy at iopsys.eu> wrote:
>
> From: Michael Polyntsov <michael.polyntsov at iopsys.eu>
>
> If hardware (or driver) doesn't support leds blinking, it's
> now possible to use software implementation of blinking instead.
> This relies on cyclic functions.
>
> Signed-off-by: Michael Polyntsov <michael.polyntsov at iopsys.eu>
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> ---
> drivers/led/Kconfig | 16 ++++-
> drivers/led/Makefile | 1 +
> drivers/led/led-uclass.c | 11 ++++
> drivers/led/led_sw_blink.c | 117 +++++++++++++++++++++++++++++++++++++
> include/led.h | 22 +++++++
> 5 files changed, 166 insertions(+), 1 deletion(-)
> create mode 100644 drivers/led/led_sw_blink.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list