diff options
author | Devin Lu <devin.lu@quantatw.com> | 2020-01-20 19:29:29 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-31 09:29:16 +0000 |
commit | c0dbf54da811afb13e1f36976586e17db87b6060 (patch) | |
tree | 0d291dd71d23f7715063be78785a3c0c3ef892bd /board/kappa/board.h | |
parent | cec65433cd9292af9b38e2c3e7b2377ca2cdaef5 (diff) | |
download | chrome-ec-c0dbf54da811afb13e1f36976586e17db87b6060.tar.gz |
kappa: enable led
This patch is enabling led temporally for incoming build.
Will add gpio control for led after CL:1712887 merged.
BUG=b:146844869
BRANCH=kukui
TEST=make sure led is showing amber while battery is charging.
make sure led is showing white after battery was fully charged.
Change-Id: I5b55bbed45360807dceca9fe2896084619fb900a
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2009540
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kappa/board.h')
-rw-r--r-- | board/kappa/board.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/board/kappa/board.h b/board/kappa/board.h index db9d40413e..a8a5880074 100644 --- a/board/kappa/board.h +++ b/board/kappa/board.h @@ -20,9 +20,6 @@ #undef CONFIG_CHIPSET_POWER_SEQ_VERSION #define CONFIG_CHIPSET_POWER_SEQ_VERSION 1 -/* TODO(b:135086465) led implementation */ -#undef CONFIG_LED_COMMON - #define CONFIG_BATTERY_HW_PRESENT_CUSTOM #define CONFIG_CHARGER_PSYS @@ -94,6 +91,17 @@ #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 { @@ -134,6 +142,13 @@ 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" |