From 3fe7bcffda1ba1673839aa911b33106d91f7591d Mon Sep 17 00:00:00 2001 From: Yilun Lin Date: Mon, 28 Jan 2019 09:40:20 +0800 Subject: kukui/battery: Bounds max charging voltage by mt6370's 1% err rate. The battery spec states the maximal charging voltage is 4.42V. Considering +-1% of voltage accuracy from rt9467/mt6370, we should lower the charging voltage to ensure it never hits 4.42V. BUG=b:118799175 BRANCH=None TEST=make BOARD=kukui Change-Id: Ibdbc78f7742efa340c821a12ed6ef43ac27eabc4 Signed-off-by: Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/1436644 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Yilun Lin Reviewed-by: Philip Chen --- board/kukui/battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/kukui/battery.c b/board/kukui/battery.c index 5a3e27b844..1e7bec10a7 100644 --- a/board/kukui/battery.c +++ b/board/kukui/battery.c @@ -128,9 +128,9 @@ int charger_profile_override(struct charge_state_data *curr) } temp_zones[BATTERY_COUNT][TEMP_ZONE_COUNT] = { [BATTERY_SIMPLO] = { /* TEMP_ZONE_0 */ - {BATTERY_SIMPLO_CHARGE_MIN_TEMP * 10, 150, 1772, 4400}, + {BATTERY_SIMPLO_CHARGE_MIN_TEMP * 10, 150, 1772, 4376}, /* TEMP_ZONE_1 */ - {150, 450, 4020, 4400}, + {150, 450, 4020, 4376}, /* TEMP_ZONE_2 */ {450, BATTERY_SIMPLO_CHARGE_MAX_TEMP * 10, 3350, 4300}, }, -- cgit v1.2.1