[U-Boot] [PATCH 1/6] led: add get_status support for DM LED support

2017-04-04 Thread techping . chan
From: Ziping Chen Sometimes we need to read back the status of a LED. Add a led_get_status function for DM LED support, and add a get_status function for the driver to implement this function. Signed-off-by: Ziping Chen --- drivers/led/led-uclass.c | 10 ++ include/led.h|

[U-Boot] [PATCH 2/6] led: gpio: add support for get_status function

2017-04-04 Thread techping . chan
From: Ziping Chen The status of a GPIO-connected LED can be read back by reading the GPO value. Add the support for get_status function in led_gpio driver. Signed-off-by: Ziping Chen --- drivers/led/led_gpio.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/led/led_gp

[U-Boot] [PATCH 3/6] cmd: led: rename command enum value

2017-04-04 Thread techping . chan
From: Ziping Chen The "LED_OFF" constant conflicts with the constant with the same name in include/linux/compat.h. Rename all command constants' name prefix from LED_ to LED_CMD_. Signed-off-by: Ziping Chen --- cmd/led.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

[U-Boot] [PATCH 6/6] cmd: led: add command led list

2017-04-04 Thread techping . chan
From: Ziping Chen Add command "led list" to list all led(s) can be operated. Signed-off-by: Ziping Chen --- cmd/led.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/cmd/led.c b/cmd/led.c index 3849a79..3f70666 100644 --- a/cmd/led.c +++ b/cmd/le

[U-Boot] [PATCH 5/6] cmd: led: add DM-based implementation

2017-04-04 Thread techping . chan
From: Ziping Chen Currently the "led" command only supports the old API without DM. Add DM-based implementation of this command. Also allow this command to be select with Kconfig. Signed-off-by: Ziping Chen --- cmd/Kconfig | 6 cmd/Makefile | 4 +++ cmd/led.c| 113 +

[U-Boot] [PATCH 4/6] cmd: led: add enum led_cmd member to support error code return

2017-04-04 Thread techping . chan
From: Ziping Chen Add enum led_cmd member LED_CMD_ERROR, so that the enum can contain the error code -1. Signed-off-by: Ziping Chen --- cmd/led.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/led.c b/cmd/led.c index ef0ab1a..d50938a 100644 --- a/cmd/led.c +++ b