diff options
author | Teddy Shih <teddyshih@ami.corp-partner.google.com> | 2021-12-29 18:02:18 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-30 09:28:17 +0000 |
commit | bb3654f2b2a32a4376c6fcd1e81f6127472f1e82 (patch) | |
tree | 67dc7eed85498d5d1735d76e0d865bc96a28add4 /board/beadrix/board.c | |
parent | 65b5bd9d3b23421332a66ed5e4fd3734395f101e (diff) | |
download | chrome-ec-bb3654f2b2a32a4376c6fcd1e81f6127472f1e82.tar.gz |
beadrix: Implement charging LEDs
LED behavior:
Charging | Red on (S0/S3/S5)
Full Charged | Blue on (S0/S3/S5)
Discharging S3 | Red on 1 sec, off 3 sec
Discharging S5 | off
Error | Red on 1 sec, off 1 sec
Discharging S0 | Blue on
Factory mode | Blue on 2 sec, Red on 2 sec
BUG=b:204882915
BRANCH=None
TEST=make BOARD=beadrix
check led behavior in every state on beadrix
Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com>
Change-Id: Ibd828447c1c031bef419d619d2b8cfb1a8fe7e9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3360329
Reviewed-by: Henry Sun <henrysun@google.com>
Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/beadrix/board.c')
-rw-r--r-- | board/beadrix/board.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/board/beadrix/board.c b/board/beadrix/board.c index df7f050464..4057db2c8f 100644 --- a/board/beadrix/board.c +++ b/board/beadrix/board.c @@ -435,26 +435,7 @@ const struct pwm_t pwm_channels[] = { .channel = 0, .flags = PWM_CONFIG_DSLEEP, .freq_hz = 10000, - }, - - [PWM_CH_LED_RED] = { - .channel = 1, - .flags = PWM_CONFIG_DSLEEP | PWM_CONFIG_ACTIVE_LOW, - .freq_hz = 2400, - }, - - [PWM_CH_LED_GREEN] = { - .channel = 2, - .flags = PWM_CONFIG_DSLEEP | PWM_CONFIG_ACTIVE_LOW, - .freq_hz = 2400, - }, - - [PWM_CH_LED_BLUE] = { - .channel = 3, - .flags = PWM_CONFIG_DSLEEP | PWM_CONFIG_ACTIVE_LOW, - .freq_hz = 2400, } - }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); |