summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-An Chen <yu-an.chen@quanta.corp-partner.google.com>2023-05-16 09:23:42 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-16 02:41:28 +0000
commitef5d1e3f1d9dcabe007ccbbc71b81a85412e0087 (patch)
tree63b39249d5a6d03fc5906607a0b4d65b1b135208
parent638a938c277e6f214277f3ec97dfec6257fa040e (diff)
downloadchrome-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>
-rw-r--r--board/taranza/led.c3
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