[PATCH v4 0/2] led: implement software blinking
Mikhail Kshevetskiy
mikhail.kshevetskiy at iopsys.eu
Fri Jul 5 14:10:21 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
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 | 50 ++++++++++++++---
drivers/led/led_sw_blink.c | 106 +++++++++++++++++++++++++++++++++++++
include/led.h | 17 ++++++
5 files changed, 181 insertions(+), 7 deletions(-)
create mode 100644 drivers/led/led_sw_blink.c
--
2.39.2
More information about the U-Boot
mailing list