diff options
author | Caveh Jalali <caveh@chromium.org> | 2018-05-18 14:59:56 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-21 21:17:52 -0700 |
commit | c1f1c4c282a178a8a7ebb0e5cfd22b83fa089fdb (patch) | |
tree | af1c022cdf425dc40e3e7d0c097d1be57e373ca0 /board/atlas/board.h | |
parent | 2eb29bb25fc2de1be45eb24c5678664b82a1dabf (diff) | |
download | chrome-ec-c1f1c4c282a178a8a7ebb0e5cfd22b83fa089fdb.tar.gz |
atlas: keep discharged battery powered during precharge
when we wake up a discharged battery using the "precharge current", it
briefly requests requests (0 vols, 0 amps) - presumably while its
controller is trying to figure out what's going on... we respect this
and stop charging, but that's probably a really bad idea since the
battery has had very little chance to accept enough charge to
self-power its controller. enabling "REQUESTS_NIL_WHEN_DEAD" gets
around that.
BUG=b:79354967
BRANCH=none
TEST=instrumented code to verify we override the 0 amps request when
battery is at 0% charge
Change-Id: I1e15e5106ae5cdda94bd1bfd02132b300c9c4665
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1067010
Commit-Ready: Caveh Jalali <caveh@google.com>
Tested-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/atlas/board.h')
-rw-r--r-- | board/atlas/board.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atlas/board.h b/board/atlas/board.h index b381333a9e..61daae9f34 100644 --- a/board/atlas/board.h +++ b/board/atlas/board.h @@ -76,6 +76,8 @@ #define CONFIG_BATTERY_HW_PRESENT_CUSTOM #define CONFIG_BATTERY_PRESENT_CUSTOM #define CONFIG_BATTERY_SMART +/* battery briefly requests V=0, A=0 when woken up */ +#define CONFIG_BATTERY_REQUESTS_NIL_WHEN_DEAD /* Charger */ #define CONFIG_CHARGE_MANAGER |