[PATCH v5 0/2] led: implement software blinking

Mikhail Kshevetskiy mikhail.kshevetskiy at iopsys.eu
Fri Jul 12 07:25:05 CEST 2024


v2 changes:
 * Drop sw_blink_state structure, move its necessary fields to
   led_uc_plat structure.
 * Add cyclic_info pointer to led_uc_plat structure. This
   simplify code a lot.
 * Remove cyclic function search logic. Not needed anymore.
 * Fix blinking period. It was twice large.
 * Other cleanups.

v3 changes:
 * Adapt code to recent cyclic function changes
 * Move software blinking functions to separate file
 * Other small changes

v4 changes:
 * refactoring of led_set_period() function

v5 changes
 * fix compilation if CONFIG_LED_BLINK is not defined

Michael Polyntsov (2):
  led: Implement software led blinking
  led: Add dts property to specify blinking of the led

 drivers/led/Kconfig        |  14 +++++
 drivers/led/Makefile       |   1 +
 drivers/led/led-uclass.c   |  52 +++++++++++++++---
 drivers/led/led_sw_blink.c | 106 +++++++++++++++++++++++++++++++++++++
 include/led.h              |  17 ++++++
 5 files changed, 183 insertions(+), 7 deletions(-)
 create mode 100644 drivers/led/led_sw_blink.c

-- 
2.39.2



More information about the U-Boot mailing list