From ca3c7eb0c75208b0e5db7e6dced3089c12eae448 Mon Sep 17 00:00:00 2001 From: "YB.Ha" Date: Fri, 8 Aug 2014 16:58:58 +0900 Subject: winky : Add to change charging currunt on near full charge. PWR_STATE_CHARGE_NEAR_FULL also need to change charging current by FCC * 0.6 for battery safety and charging time. BUG=chrome-os-partner:31146 TEST=emerge-winky chromeos-ec Check charging current by i2c register. Change-Id: I1c0ea803c663dcc4147a31a3af33864b592bf89b Reviewed-on: https://chromium-review.googlesource.com/211554 Reviewed-by: yoojin lee Reviewed-by: Mohammed Habibulla Reviewed-by: YongBeum Ha Commit-Queue: YongBeum Ha Tested-by: YongBeum Ha --- board/winky/battery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/winky/battery.c b/board/winky/battery.c index 7d087edf67..666a49f054 100755 --- a/board/winky/battery.c +++ b/board/winky/battery.c @@ -134,7 +134,8 @@ void battery_override_params(struct batt_params *batt) return; } - if(chstate == PWR_STATE_CHARGE) { + if((chstate == PWR_STATE_CHARGE) || + (chstate == PWR_STATE_CHARGE_NEAR_FULL)) { battery_full_charge_capacity(&bat_fcc); batt->desired_current = bat_fcc*6/10; } -- cgit v1.2.1