From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ziping Chen Date: Wed, 12 Apr 2017 16:51:22 +0800 Subject: [U-Boot] [PATCH v2 0/9] dm: led: Expand the LED interface and add a command In-Reply-To: <20170410173459.30461-1-sjg@chromium.org> References: <20170410173459.30461-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 2017-04-11 1:34 GMT+08:00 Simon Glass : > 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