From 33fa1073fd5d944f5199bfcccc5a6fc9a782739a Mon Sep 17 00:00:00 2001 From: Diana Z Date: Fri, 16 Apr 2021 15:18:28 -0600 Subject: LED On/Off: Add state for off with insufficient power Add a common state to communicate that we're off due to insufficient power. If not defined, allow this state to fall back to OFF since many systems with batteries will be using the battery LED to communicate this information. BRANCH=None BUG=b:185508707 TEST=on boten, confirm no regressions with fake low battery in S5 Signed-off-by: Diana Z Change-Id: Ie8b37785a43fdfdd6619fe72c8bd7e2be6776e43 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832694 Reviewed-by: Rob Barnes Commit-Queue: Rob Barnes --- include/led_onoff_states.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/led_onoff_states.h') diff --git a/include/led_onoff_states.h b/include/led_onoff_states.h index baae0ca567..7eb8b312f7 100644 --- a/include/led_onoff_states.h +++ b/include/led_onoff_states.h @@ -58,6 +58,7 @@ enum pwr_led_states { PWR_LED_STATE_SUSPEND_AC, PWR_LED_STATE_SUSPEND_NO_AC, PWR_LED_STATE_OFF, + PWR_LED_STATE_OFF_LOW_POWER, /* Falls back to OFF if not defined */ PWR_LED_NUM_STATES }; -- cgit v1.2.1