From: Tom Rini <trini@konsulko.com>
Date: Tue, 30 Jul 2024 18:36:22 +0000 (-0600)
Subject: Merge patch series "led: implement software blinking"
X-Git-Tag: v2025.01-rc5-pxa1908~361
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=8877bc51a8a4d921ba2f163208b8b1a57ba47c18;p=u-boot.git

Merge patch series "led: implement software blinking"

Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> says:

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

v6 changes:
 * Enable LEDST_BLINK state unconditionally.
 * Function led_set_period() becomes available when CONFIG_LED_BLINK
   is disabled. This makes led code simpler.
 * Software blinking requires about 100 bytes of data for a led. It's
   not a good idea to allocate so much memory for each supported led.
   Change the code to allocate blinking data only for required leds.
---

8877bc51a8a4d921ba2f163208b8b1a57ba47c18
diff --cc include/led.h
index a635316628,8270d6cef9..99f93c5ef8
--- a/include/led.h
+++ b/include/led.h
@@@ -7,6 -7,6 +7,9 @@@
  #ifndef __LED_H
  #define __LED_H
  
++#include <stdbool.h>
++#include <cyclic.h>
++
  struct udevice;
  
  enum led_state_t {