diff options
author | Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> | 2020-07-13 16:19:30 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-16 12:15:08 +0000 |
commit | 81320063b6b4918f3f2d06540e72eb79fb2de576 (patch) | |
tree | 8064b50c9da04dca1b7e415c4ee65686c554ff71 /board/delbin/board.h | |
parent | 43187cf0c1fae2e7744148b13be203ad625c20be (diff) | |
download | chrome-ec-81320063b6b4918f3f2d06540e72eb79fb2de576.tar.gz |
delbin: Implement the EC LED code.
Implement the EC LED code dependent on spec.
BUG=b:161089483
BRANCH=master
TEST=manual
1. Check battery LED on full charging / charging / discharging.
2. Check power LED on s0 / suspend / s5.
3. Check "ectool led" command for battery and power LED control.
Signed-off-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Change-Id: I6f4516cfaec78f127ae8fb6f44131bece293bbe2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2294627
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/delbin/board.h')
-rw-r--r-- | board/delbin/board.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/board/delbin/board.h b/board/delbin/board.h index f67e42c339..65ba2ec64c 100644 --- a/board/delbin/board.h +++ b/board/delbin/board.h @@ -11,6 +11,9 @@ /* Baseboard features */ #include "baseboard.h" +#undef NPCX_PWM1_SEL +#define NPCX_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ + /* Optional features */ #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ @@ -25,9 +28,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 */ @@ -138,11 +140,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_FAN, + PWM_CH_FAN = 0, PWM_CH_KBLIGHT, PWM_CH_COUNT }; |