diff options
author | Scott Collyer <scollyer@google.com> | 2018-05-09 12:41:14 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-16 12:41:52 -0700 |
commit | 83f8996bd073f7b9753bd5b859fe141f263ab9a5 (patch) | |
tree | 2304643541859a26c427ba04e0a30d2b2150d892 /baseboard/octopus/baseboard.h | |
parent | f6f884b7b193bdf8ee9a50e146a0bd8e5c202cd2 (diff) | |
download | chrome-ec-83f8996bd073f7b9753bd5b859fe141f263ab9a5.tar.gz |
octopus: Add CONFIG_BATTERY_REVIVE_DISCONNECT
Adding this config so that battery_get_disconnect_state() is called
directly as a condition in prevent_power_on instead of having this be
a condition battery_is_present. This change allows precharge current
to be sent to the battery when the battery is dead or recovering from
battery cutoff condition.
BRANCH=none
BUG=b:79133101
TEST=tested on Yorp and verfied that in both dead battery and battery
cutoff cases, the battery wakes up as expected.
Change-Id: Iefec578dd241ddb832630ffa2530ba7c631f9a96
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1053096
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'baseboard/octopus/baseboard.h')
-rw-r--r-- | baseboard/octopus/baseboard.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h index 08c7ef9882..b3b321437b 100644 --- a/baseboard/octopus/baseboard.h +++ b/baseboard/octopus/baseboard.h @@ -119,6 +119,7 @@ /* TODO(b/74427009): Ensure this works in dead battery conditions */ #define CONFIG_BATTERY_HW_PRESENT_CUSTOM #define CONFIG_BATTERY_PRESENT_CUSTOM +#define CONFIG_BATTERY_REVIVE_DISCONNECT #define CONFIG_BATTERY_SMART /******************************************************************************* |