diff options
author | Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> | 2023-05-16 09:23:42 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-16 02:41:28 +0000 |
commit | ef5d1e3f1d9dcabe007ccbbc71b81a85412e0087 (patch) | |
tree | 63b39249d5a6d03fc5906607a0b4d65b1b135208 /board/taranza/led.c | |
parent | 638a938c277e6f214277f3ec97dfec6257fa040e (diff) | |
download | chrome-ec-ef5d1e3f1d9dcabe007ccbbc71b81a85412e0087.tar.gz |
taranza: Enable ectool led control
Enable ectool led control
BUG=b:278167979
TEST=ectool led power white/off/auto
Change-Id: I36f5aac2ff78aa6e68347ece6cc59eb87a3bb8b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4533460
Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Commit-Queue: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Diffstat (limited to 'board/taranza/led.c')
-rw-r--r-- | board/taranza/led.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/taranza/led.c b/board/taranza/led.c index 4f41c3c6c1..6101e9a263 100644 --- a/board/taranza/led.c +++ b/board/taranza/led.c @@ -59,6 +59,9 @@ int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness) /* Called by hook task every TICK */ static void led_tick(void) { + if (!led_auto_control_is_enabled(EC_LED_ID_POWER_LED)) + return; + if (chipset_in_state(CHIPSET_STATE_ON)) led_set_color_power(LED_WHITE); else |