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|
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
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(-)
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
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 +
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
6 matches
Mail list logo