summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott.chao@bitland.corp-partner.google.com>2020-03-30 14:53:10 +0800
committerCommit Bot <commit-bot@chromium.org>2020-03-31 09:42:11 +0000
commit5ba3a4346064946058f692bce83cba5438c77c45 (patch)
tree9d668d0a06c6b39c5c667c8bccffe0df474d7ac7
parent967a74dc60d6f1eb76c62e4c8736dd1b1372f522 (diff)
downloadchrome-ec-5ba3a4346064946058f692bce83cba5438c77c45.tar.gz
kakadu: update led behavior
kakadu led behavior is reference to Google partner site. Charging led is amber so EC need to enable green and red led at the same time. BUG=b:152719659 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall TEST=Once we received board, we will test it on it. Change-Id: I48a70b912f8608673f7e973f119184de5276123b Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2124446 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
-rw-r--r--board/kakadu/led.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/kakadu/led.c b/board/kakadu/led.c
index 0a32ddda90..83942445c1 100644
--- a/board/kakadu/led.c
+++ b/board/kakadu/led.c
@@ -43,12 +43,12 @@ static void kakadu_led_set_battery(void)
switch (chstate) {
case PWR_STATE_CHARGE:
- /* RGB(current, duty) = (4mA,1/32)*/
- br[EC_LED_COLOR_BLUE] = 1;
+ br[EC_LED_COLOR_GREEN] = 1;
+ br[EC_LED_COLOR_RED] = 1;
break;
case PWR_STATE_DISCHARGE:
- /* display SoC 10% = real battery SoC 13%*/
- if (charge_get_percent() <= 13)
+ /* real battery SoC 5%*/
+ if (charge_get_percent() <= 5)
br[EC_LED_COLOR_RED] = 1;
break;
case PWR_STATE_CHARGE_NEAR_FULL: