diff options
author | Scott <scollyer@chromium.org> | 2016-12-15 19:12:46 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-31 17:07:40 -0800 |
commit | 1fdca3156233c71f51e2ffdd8758dcd53cf882cb (patch) | |
tree | 9182975aaf698fb3b3ae139ac5020b3e5d70dec3 /board/eve/build.mk | |
parent | a4bddf7f2144a4a42e67260fa274da64d79fb2c7 (diff) | |
download | chrome-ec-1fdca3156233c71f51e2ffdd8758dcd53cf882cb.tar.gz |
eve: Add support for 3 color PWM controlled LEDs
Eve has two 3 color PWM controlled LEDs. This CL adds basic support
for these LEDs so that they can be set to off, red, green, or blue. In
addition, the LED policy from Kevin is appropriated.
In S0 the LEDs will be blue.
In S3/S5 if no charger is connected, then the LEDs are off
If a charger is connected and the charge level is less than a
threshold, both LEDs are set to red. When the charge level gets above
a certain level or if the charge state is idle, then the LEDs are set
to green.
BRANCH=none
BUG=chrome-os-partner:60797
TEST=manual
Turn the system on so it's in S0, verify both LEDs are blue.
Close the lid with no external charger and verify that the LEDs are
both off. Connect the charger, and using battfake <> EC command verify
that when the charge level is less than the threshold the LEDs are
red, otherwise they are green. Set battfake to 0, and verified
flashing red.
Change-Id: I556ccdafde03cd5f5205e8948d5737dcbdc09d6d
Signed-off-by: Scott <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/434146
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'board/eve/build.mk')
-rw-r--r-- | board/eve/build.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eve/build.mk b/board/eve/build.mk index 705891e38c..f47b5d9caf 100644 --- a/board/eve/build.mk +++ b/board/eve/build.mk @@ -9,6 +9,6 @@ CHIP:=npcx CHIP_VARIANT:=npcx5m6g -board-y=board.o +board-y=board.o led.o board-$(CONFIG_BATTERY_SMART)+=battery.o board-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o |