summaryrefslogtreecommitdiff
path: root/common/battery_link.c
Commit message (Collapse)AuthorAgeFilesLines
* link: Don't force battery to request currentRandall Spangler2012-10-241-6/+2
| | | | | | | | | | | | | | | | | | Previously, the battery charging algorithm would give the battery current even when it was requesting 0 mA. BUG=chrome-os-partner:15573 BRANCH=link TEST=charge battery and leave AC plugged in Battery will eventually drop to 99% charged. At that point, it should request 0mA, not 84mA or 85mA. (When it drops farther, it will really start requesting charge.) Change-Id: I464a7c8e857c928dbb9f9595f9c947d565b5f5c6 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36526 Reviewed-by: Rong Chang <rongchang@chromium.org>
* Cleanup: batteryRandall Spangler2012-10-241-43/+31
| | | | | | | | | | | | Tidy code. No functional changes. BUG=chrome-os-partner:15579 BRANCH=none TEST=discharge battery, then plug AC in and make sure it charges Change-Id: I4cff018940ecb665be96655d6722f74dd6674f6d Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36359
* Change link charging profileRong Chang2012-08-061-43/+64
| | | | | | | | | | | | | | | Change vendor specific charging current table to meet battery specification. Signed-off-by: Rong Chang <rongchang@chromium.org> BUG=chrome-os-partner:12012 TEST=run firmware_ECCharging Change-Id: I41a8060834bd02153d8c722ae5ffed7749226b83 Reviewed-on: https://gerrit.chromium.org/gerrit/29258 Reviewed-by: Vic Yang <victoryang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org> Commit-Ready: Rong Chang <rongchang@chromium.org>
* Rename battery pack file and limit trickle charging currentRong Chang2012-07-121-0/+126
The spec of link internal battery pack changed. This CL adds parameter for new pack, and renames vendor specific source file accordingly. The new trickle charging current limit should fix the slow pre-charging issue. Signed-off-by: Rong Chang <rongchang@chromium.org> BUG=chrome-os-partner:11298,10201 TEST=manual The minimum trickle charging current should be very close to 0.01 C (85mA). Previous battery pack firmware uses 5mA in pre- charging. Change-Id: I0bad679db7dd087894297e6eb0e85c9b12fdf444 Reviewed-on: https://gerrit.chromium.org/gerrit/27256 Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Ready: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org>