summaryrefslogtreecommitdiff
path: root/include/led_common.h
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-11-18 15:08:43 +0800
committerCommit Bot <commit-bot@chromium.org>2021-11-30 19:40:07 +0000
commitbccca05bf8101e6c11443d9ff085c53f95c50a1d (patch)
treef7dc2305dc730c9faa3cb8a362895c3802f51090 /include/led_common.h
parentfa854d62c1a0280519b24a63e872f37dda09810c (diff)
downloadchrome-ec-bccca05bf8101e6c11443d9ff085c53f95c50a1d.tar.gz
led_common: Add board_led_auto_control
Some projects have only power led won't change the led state immediately as the auto command is called for they only check the led state while the power state is changed. Add board_led_auto_control to let them check led state while receive the auto control command. BUG=b:198405130 BRANCH=none TEST=make buildall Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I8befb1b3044b6ee788cc36b21f682a3450f31185 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3288539 Reviewed-by: Joe Tessler <jrt@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Joe Tessler <jrt@chromium.org>
Diffstat (limited to 'include/led_common.h')
-rw-r--r--include/led_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/led_common.h b/include/led_common.h
index a66455b008..1e4629a606 100644
--- a/include/led_common.h
+++ b/include/led_common.h
@@ -75,6 +75,12 @@ enum ec_led_state {
};
/**
+ * Check the LED state while receive the auto control
+ * command.
+ */
+void board_led_auto_control(void);
+
+/**
* Control state of LED.
*
* @param led_id ID of LED to control