From c1d5ecfb526750ed12c2476440fab6322d0e8238 Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Fri, 29 Sep 2017 16:07:28 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/693386 Commit-Ready: Scott Collyer Tested-by: Scott Collyer Reviewed-by: Aaron Durbin --- board/coral/board.h | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1