2017-04-11 1:34 GMT+08:00 Simon Glass <s...@chromium.org>:
> The LED interface for driver model is a little primitive. This series > expands it to match the legacy interface and adds a command to match. > > Changes in v2: > - Add new patch with blank line in the Kconfig file > - Drop the explicit assignment to LEDST_TOGGLE > - Control this feature via a new CONFIG_LED_BLINK option > > Simon Glass (9): > sandbox: Add some test LEDs > dm: led: Add a missing blank line in the Kconfig file > dm: led: Rename struct led_uclass_plat > dm: led: Adjust the LED uclass > dm: led: Add support for getting the state of an LED > dm: led: Support toggling LEDs > dm: led: Add support for blinking LEDs > led: Mark existing driver as legacy > dm: led: Add a new 'led' command > > arch/sandbox/dts/sandbox.dts | 14 +++ > cmd/Kconfig | 9 ++ > cmd/Makefile | 3 +- > cmd/led.c | 262 +++++++++++++++++------------- > ---------- > cmd/legacy_led.c | 187 ++++++++++++++++++++++++++++ > configs/sandbox_defconfig | 1 + > configs/sandbox_noblk_defconfig | 1 + > configs/sandbox_spl_defconfig | 1 + > drivers/led/Kconfig | 10 ++ > drivers/led/led-uclass.c | 32 ++++- > drivers/led/led_gpio.c | 39 +++++- > include/led.h | 75 ++++++++++-- > test/dm/led.c | 56 ++++++++- > 13 files changed, 517 insertions(+), 173 deletions(-) > create mode 100644 cmd/legacy_led.c > > -- > 2.12.2.715.g7642488e1d-goog > > Reviewed-by: Ziping Chen <techping.c...@gmail.com> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot