diff options
author | johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> | 2021-05-26 17:07:38 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-27 02:32:42 +0000 |
commit | 29731f37cf08c57d0e967c5e1a4af3c41b0f3f26 (patch) | |
tree | f99ed7139f5fe107acef9e260eb21847e50c0050 /board/cret/board.c | |
parent | 6f586f1026232de04cbf11f7530b10983e65b8f5 (diff) | |
download | chrome-ec-29731f37cf08c57d0e967c5e1a4af3c41b0f3f26.tar.gz |
cret: add Power LED behavior
Add Battery control for Cret.
Power LED:
System S0: White
System S0ix: Blinking white (1 sec on, 1 sec off)
System S5/G3: Off.
Battery LED:
DC mode:
System S0: off.
System S5/G3: Off.
System battery low: Blinking Amber (1 sec on, 1 sec off).
AC mode:
Charging: Amber.
Full charged: White.
Battery low or AC only: Blinking Amber (1 sec on, 1 sec off).
BUG=b:188900681
BRANCH=dedede
TEST=test on cret ,battery 、 Power LEDs are work.
Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>
Change-Id: I184753a738576772e37baa37e0484e9cd9834b7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2919152
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/cret/board.c')
-rw-r--r-- | board/cret/board.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/board/cret/board.c b/board/cret/board.c index bcba5138a9..a11dc57796 100644 --- a/board/cret/board.c +++ b/board/cret/board.c @@ -470,18 +470,6 @@ const struct pwm_t pwm_channels[] = { .flags = PWM_CONFIG_DSLEEP, .freq = 10000, }, - - [PWM_CH_LED1_AMBER] = { - .channel = 2, - .flags = PWM_CONFIG_DSLEEP | PWM_CONFIG_ACTIVE_LOW, - .freq = 2400, - }, - - [PWM_CH_LED2_WHITE] = { - .channel = 0, - .flags = PWM_CONFIG_DSLEEP | PWM_CONFIG_ACTIVE_LOW, - .freq = 2400, - } }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); |