From c1f1c4c282a178a8a7ebb0e5cfd22b83fa089fdb Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Fri, 18 May 2018 14:59:56 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/1067010 Commit-Ready: Caveh Jalali Tested-by: Caveh Jalali Reviewed-by: Daisuke Nojiri --- board/atlas/board.h | 2 ++ 1 file changed, 2 insertions(+) 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