summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-12-16 11:47:48 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-23 18:16:18 +0000
commit91bbfb780c1383db9bcade9a63716a53e1725862 (patch)
tree3a1113b7bb94e5711c9a25fdce527484fe7deecf /driver
parent2d4b6d2f43e8cbe95514b449ab28a484ca276730 (diff)
downloadchrome-ec-91bbfb780c1383db9bcade9a63716a53e1725862.tar.gz
samus: set BQ voltage to battery voltage when AC disconnected
Set charge state machine voltage to just above the battery voltage when AC is disconnected. Also send new current before sending new voltage to charger when there is a change. These changes reduce input current spikes caused by current inrush into the battery and thereby decrease chance of overcurrenting power supply on connect. BUG=chrome-os-partner:33862 BRANCH=samus TEST=load onto samus instrumented with input current probe. when AC is attached note that initial current spike is much lower with this change. Change-Id: I7760cd2b709c6b3536cf2a9449bb1f46800ce10a Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/237245 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/battery/samus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/battery/samus.c b/driver/battery/samus.c
index 6458af0199..89f6dc9b68 100644
--- a/driver/battery/samus.c
+++ b/driver/battery/samus.c
@@ -19,7 +19,7 @@ static const struct battery_info info = {
* normal = 7.4V
* min = 6.0V
*/
- .voltage_max = 8400,
+ .voltage_max = 8700,
.voltage_normal = 7400,
.voltage_min = 6000,