diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2021-10-06 18:02:00 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-08 16:43:19 +0000 |
commit | 7c4b49722df9edc6e7eb6008d20bcbdddf0507d7 (patch) | |
tree | 9b65ef60a5a977b7e46b22b59b27c6603d927089 /board/volteer | |
parent | ed0bb610e7d55a903e08e11da5936ce4abf6969c (diff) | |
download | chrome-ec-7c4b49722df9edc6e7eb6008d20bcbdddf0507d7.tar.gz |
zephyr: shim: handle sidesel in the shim file
This adds handling for the sidesel channel from the shim driver, if the
sidesel node is specified.
With this, all the pwm-led combinations should be manageable from the
shim driver, so this also removes the conditionals from volteer driver
and drops it from the Zephyr build entirely.
BRANCH=none
BUG=b:177452529
TEST=build and run on volteer
TEST=checked the binary output if node not defined
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Id215d26a8b14330b9604c7385d6ce436ef1a60cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3207995
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/volteer')
-rw-r--r-- | board/volteer/led.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/board/volteer/led.c b/board/volteer/led.c index 3286cd1821..52a6b9d890 100644 --- a/board/volteer/led.c +++ b/board/volteer/led.c @@ -13,7 +13,6 @@ #include "led_pwm.h" #include "pwm.h" -#ifndef CONFIG_ZEPHYR const enum ec_led_id supported_led_ids[] = { EC_LED_ID_POWER_LED, }; @@ -78,7 +77,6 @@ int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness) return EC_SUCCESS; } -#endif /* Illuminates the LED on the side of the active charging port. If not charging, * illuminates both LEDs. |