Files
OpenCellular/board
Caveh Jalali f46242cf34 atlas: improve discharged battery handling
we normally try to find out a few things about a battery (like charge
level) before actaully applying charging power to it.  when the
battery is completely discharged, the controller on the battery can't
respond as it is not self-powered.  so, we have to avoid all
operations that depend on the battery responding in the battery
discovery/initialization path.

as long as we report that a battery is present and it is not
responsive, the charger task will enter ST_PRECHARGE which means it'll
provide a "precharge" current to the battery to try to talk to it.
this allows the battery's controller to report battery parameters
allowing our charger task can do the right thing.

BUG=b:79354967
BRANCH=none
TEST=atlas now discovers the discharged battery reliably

Change-Id: I5e5a3abda07508eb791b712fb2f9b9f5fe383e07
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1065492
Commit-Ready: Caveh Jalali <caveh@google.com>
Tested-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Caveh Jalali <caveh@google.com>
2018-05-30 01:02:38 -07:00
..
2018-05-23 12:50:54 -07:00
2018-05-25 20:31:50 -07:00
2018-05-23 09:13:49 -07:00
2018-05-25 20:31:50 -07:00
2018-05-28 07:30:36 -07:00
2018-01-30 14:54:17 -08:00
2018-05-22 15:54:11 -07:00
2018-05-23 09:13:49 -07:00
2018-05-24 15:44:30 -07:00
2016-05-04 16:15:02 -07:00
2018-01-10 12:58:55 -08:00
2017-11-15 20:21:12 -08:00
2014-04-02 19:58:53 +00:00
2017-05-16 07:47:05 -07:00
2017-12-20 05:49:34 -08:00
2017-11-09 16:43:54 -08:00