summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2017-09-29 16:07:28 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-03 14:26:11 -0700
commitc1d5ecfb526750ed12c2476440fab6322d0e8238 (patch)
tree36bee2f98a8ff8a747d2b0c019bc7c726aab2852
parent21319e6986bbad324e0d5bef1d761233f42bf058 (diff)
downloadchrome-ec-c1d5ecfb526750ed12c2476440fab6322d0e8238.tar.gz
coral: Enable CONFIG_BATTERY_LEVEL_NEAR_FULL for LED function
When the battery gets to returns the FULL flag, bd99956 charging is disabled and battery learning is enabled. This state will remain until the FULL flag is cleared by the battery. The original fix had this level at 97%, but on the various batteries tested this appears to happen at 95%. The CONFIG_BATTERY_LEVEL_NEAR_FULL allows an adjustment for this level and is only used for LED states. BUG=b:64192049 BRANCH=None TEST=Manual Let system charge to 100% when FULL flag is set in the battery, verified the LED was in correct state. Then let battery drain until the FULL flag is clear and observe that the battery requests charge current. The LED stays in the expected full charge state. Change-Id: I74d26abd5d8021bcfacdc3a4c3d4baba6a978bca Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/693386 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--board/coral/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/coral/board.h b/board/coral/board.h
index 80af754611..b5045d5a29 100644
--- a/board/coral/board.h
+++ b/board/coral/board.h
@@ -42,6 +42,7 @@
#define CONFIG_BATTERY_DEVICE_CHEMISTRY "LION"
#define CONFIG_BATTERY_CUT_OFF
#define CONFIG_BATTERY_HW_PRESENT_CUSTOM
+#define CONFIG_BATTERY_LEVEL_NEAR_FULL 94
#define CONFIG_BATTERY_PRESENT_CUSTOM
#define CONFIG_BATTERY_SMART