summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-27 14:48:54 +1300
committerCommit Bot <commit-bot@chromium.org>2021-04-01 00:06:17 +0000
commitcd9c434a5d8cda6515cb774d4f828b06860dd7c0 (patch)
treeac33b3ac2065d59dbfcbee99afefc8c9d3ec69f7 /zephyr/Kconfig.battery
parent3bc17ba9b73ddb70f240f87f3663523181ed3bbc (diff)
downloadchrome-ec-cd9c434a5d8cda6515cb774d4f828b06860dd7c0.tar.gz
zephyr: Add support for BATTERY_REVIVE_DISCONNECT
Add support for this option in Kconfig. BUG=b:183296099 BRANCH=none TEST=with other CLs, build zephyr for lazor and see that the option is present Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I2e77d72059ffe86f3d24f0a2bad3b0e3438dc08c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788830 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r--zephyr/Kconfig.battery7
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery
index 763c374876..136710ee17 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -90,6 +90,13 @@ config PLATFORM_EC_BATTERY_DEVICE_CHEMISTRY
is returning the right information. If it is not, there might be
something wrong with the I2C implementation.
+config PLATFORM_EC_BATTERY_REVIVE_DISCONNECT
+ bool "Check for a battery in disconnect state"
+ help
+ Check for battery in disconnect state (similar to cut-off state). If
+ so, take it out of that state by force-applying a charge current.
+ This option requires battery_get_disconnect_state() to be defined.
+
choice "Charger select"
prompt "Select the charger to use"
help