hw/misc/led: Add yellow LED
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 13 Mar 2021 15:18:34 +0000 (16:18 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 14 Mar 2021 23:39:30 +0000 (00:39 +0100)
Add the yellow "lime" LED.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Michael Rolnik <mrolnik@gmail.com>
Message-Id: <20210313165445.2113938-2-f4bug@amsat.org>

hw/misc/led.c
include/hw/misc/led.h

index 5266d026d0b07267505996acb93c2aaab09f3d49..f552b8b6483cfd29359a034cfa1b64ac3db9f284 100644 (file)
@@ -20,6 +20,7 @@ static const char * const led_color_name[] = {
     [LED_COLOR_BLUE]    = "blue",
     [LED_COLOR_CYAN]    = "cyan",
     [LED_COLOR_GREEN]   = "green",
+    [LED_COLOR_YELLOW]  = "yellow",
     [LED_COLOR_AMBER]   = "amber",
     [LED_COLOR_ORANGE]  = "orange",
     [LED_COLOR_RED]     = "red",
index aa359b87c20e0b6a10d5d905769d69f315d2f866..29c087957080039f816e0d19b545e3252260da4d 100644 (file)
@@ -27,6 +27,7 @@ typedef enum {          /* Coarse wavelength range */
     LED_COLOR_BLUE,     /* 475 nm */
     LED_COLOR_CYAN,     /* 500 nm */
     LED_COLOR_GREEN,    /* 535 nm */
+    LED_COLOR_YELLOW,   /* 567 nm */
     LED_COLOR_AMBER,    /* 590 nm */
     LED_COLOR_ORANGE,   /* 615 nm */
     LED_COLOR_RED,      /* 630 nm */