[U-Boot] [PATCH 0/8] dm: led: Expand the LED interface and add a command

Simon Glass sjg at chromium.org
Fri Mar 31 17:54:57 UTC 2017


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.


Simon Glass (8):
  sandbox: Add some test LEDs
  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                    | 252 +++++++++++++++++--------------------------
 cmd/legacy_led.c             | 187 ++++++++++++++++++++++++++++++++
 drivers/led/led-uclass.c     |  30 +++++-
 drivers/led/led_gpio.c       |  39 ++++++-
 include/led.h                |  62 +++++++++--
 test/dm/led.c                |  54 +++++++++-
 9 files changed, 476 insertions(+), 174 deletions(-)
 create mode 100644 cmd/legacy_led.c

-- 
2.12.2.564.g063fe858b8-goog



More information about the U-Boot mailing list