diff options
author | Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> | 2021-06-03 19:12:50 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-10 21:48:20 +0000 |
commit | cd40e99251db94f2ddf69bd63f98ecfe35c25fe7 (patch) | |
tree | 3a654f4a269218639915bbdc41001499603244cf /board/chronicler/board.h | |
parent | af535e7e927affe68a8a3ea9d6f064cb19b7beab (diff) | |
download | chrome-ec-cd40e99251db94f2ddf69bd63f98ecfe35c25fe7.tar.gz |
Chronicler: Implement LED behavior
Chronicler have two charging leds on left side and right side.
Each side have two colors amber and white.
The led behavior define as following:
1. Charging led: led on with charging port active, other port is off.
2. Charging: Amber.
3. Discharging: Off.
4. Battery Error: Blinking white (0.4 sec on, 0.4 sec off)
5. Fuel < 10%: Blinking white on right side port (1 sec on, 1 sec off)
6. Force idle for factory: Blinking amber (1 sec on, 1 sec off)
7. S0ix without charging state:
Blinking both side LED white (1 sec on, 1 sec off)
BUG=b:190019962
BRANCH=volteer
TEST=make sure led behavior intended.
make sure ectool led left white/amber/off/auto work correctly.
make sure ectool led right white/amber/off/auto work correctly.
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I90626a233fe0ec53a3ad9ecbb57f7b47de57ce18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2936838
Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/chronicler/board.h')
-rw-r--r-- | board/chronicler/board.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/board/chronicler/board.h b/board/chronicler/board.h index 1414031c1e..ca691c437c 100644 --- a/board/chronicler/board.h +++ b/board/chronicler/board.h @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -/* Volteer board configuration */ +/* Chronicler board configuration */ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H @@ -33,10 +33,6 @@ /* Chipset features */ #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 /* Keyboard features */ @@ -173,10 +169,6 @@ 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_FAN, PWM_CH_KBLIGHT, PWM_CH_COUNT |