diff options
author | Devin Lu <devin.lu@quantatw.com> | 2020-02-17 20:37:31 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-18 09:29:54 +0000 |
commit | 599428feb0b21b57c5d50cde60e064806376e8e6 (patch) | |
tree | 43ad76f5c71f69a0dea9cf2f4a6c5573ae9e6586 /board/kappa/board.h | |
parent | 4b8d829d6ab0131716ec8972847479056cd3fbba (diff) | |
download | chrome-ec-599428feb0b21b57c5d50cde60e064806376e8e6.tar.gz |
kappa: add gpio led controlling
CL:1712887 added ioexpander gpio control. This patch add customize led
behavior.
Charging: Amber.
Discharging: Off.
Fully: White.
Battery Error: Blinking white (0.5 sec on, 0.5 sec off)
Fuel <10%: Blinking white (1 sec on, 1 sec off)
Force idle for factory: Blinking amber (1 sec on, 1 sec off)
system suspend without charging: Blinking white (1 sec on, 1 sec off)
BUG=b:146844869
BRANCH=kukui
TEST=make sure led is showing amber while battery is charging.
make sure led is showing white while battery is fully charged.
make sure led is blinking white while battery low.
make sure led is blinking white on suspend without charging.
make sure led is blinking white quickly while battery error.
Change-Id: I2790cba404222c98d2e9741865ed3a532a6d001e
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2060249
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kappa/board.h')
-rw-r--r-- | board/kappa/board.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/board/kappa/board.h b/board/kappa/board.h index 99da5f17dd..8cc3aefd8c 100644 --- a/board/kappa/board.h +++ b/board/kappa/board.h @@ -96,17 +96,6 @@ #define PD_OPERATING_POWER_MW 30000 -#undef CONFIG_LED_PWM_NEAR_FULL_COLOR -#undef CONFIG_LED_PWM_CHARGE_ERROR_COLOR - -#define CONFIG_LED_PWM_NEAR_FULL_COLOR EC_LED_COLOR_WHITE -#define CONFIG_LED_PWM_CHARGE_ERROR_COLOR EC_LED_COLOR_WHITE - -#define CONFIG_LED_PWM -#define CONFIG_LED_PWM_CHARGE_STATE_ONLY -#define CONFIG_IO_EXPANDER_IT8801_PWM -#define CONFIG_LED_PWM_COUNT 1 - #ifndef __ASSEMBLER__ enum adc_channel { @@ -147,13 +136,6 @@ enum battery_type { BATTERY_TYPE_COUNT, }; -enum pwm_channel { - PWM_CH_LED_AMBER, - PWM_LED_NO_CHANNEL, - PWM_CH_LED_WHITE, - PWM_CH_COUNT -}; - #include "gpio_signal.h" #include "registers.h" |