diff options
author | lennon chen <lennon_chen@wistron.corp-partner.google.com> | 2020-08-29 00:29:08 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-12 03:22:16 +0000 |
commit | 100d6ae9ec1f637f61b414a14c4c9299ce341e09 (patch) | |
tree | bac1b401966d3b0b208b2019ebb179d2c196e9b7 /board/eldrid/board.h | |
parent | 7269813d6e3d0e383abc915c1971deb2cccd45db (diff) | |
download | chrome-ec-100d6ae9ec1f637f61b414a14c4c9299ce341e09.tar.gz |
Eldrid: Implement LED function
Modify LED behavior to meet LED specification
1.Power led:
System is S0: White
System is suspend/S0ix: blinking white (1 sec on/off)
System is S5: Off
2.charger led:
Charging: amber on
Full charged: white on
Discharging: led Off
Blinking white (0.4 sec on/off): battery error
Blinking white (1 sec on/off): Fuel < 10%, blinking on right side port
Blinking amber (1 sec on/off): Force idle for factory
BUG=b:165875385
BRANCH=none
TEST=Check behavior to meet LED specification
TEST=make -j BOARD=eldrid
TEST=make buildall
Change-Id: I693137e5512e4c8a2f8cac39389bd23e0ca2f2c7
Signed-off-by: lennon chen <lennon_chen@wistron.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2385023
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Commit-Queue: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/eldrid/board.h')
-rw-r--r-- | board/eldrid/board.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/board/eldrid/board.h b/board/eldrid/board.h index af577086a0..8e59d5e0c6 100644 --- a/board/eldrid/board.h +++ b/board/eldrid/board.h @@ -33,9 +33,8 @@ #define CONFIG_POWER_PP5000_CONTROL /* LED defines */ -#define CONFIG_LED_PWM -/* Although there are 2 LEDs, they are both controlled by the same lines. */ -#define CONFIG_LED_PWM_COUNT 1 +#define CONFIG_LED_POWER_LED +#define CONFIG_LED_ONOFF_STATES /* Keyboard features */ @@ -179,10 +178,7 @@ enum battery_type { }; enum pwm_channel { - PWM_CH_LED1_BLUE = 0, - PWM_CH_LED2_GREEN, - PWM_CH_LED3_RED, - PWM_CH_LED4_SIDESEL, + PWM_CH_LED4_SIDESEL = 0, PWM_CH_FAN, PWM_CH_KBLIGHT, PWM_CH_COUNT |