summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-09-03 17:57:08 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-08 22:36:05 +0000
commitb35f8f07daaf148ffc4039c33f2fedcc4cb42cc2 (patch)
tree1d3d7ccf9f2340e1ebe6d264d49dc9d33b5d95d7 /zephyr/Kconfig.battery
parentf3ffccd7d0fe4d0ce60434310795a7bfdaa5274c (diff)
downloadchrome-ec-b35f8f07daaf148ffc4039c33f2fedcc4cb42cc2.tar.gz
zephyr: add missing battery Kconfigs
Add missing Kconfigs for: - PLATFORM_EC_BATTERY_CRITICAL_SHUTDOWN_CUT_OFF - PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS - PLATFORM_EC_BATTERY_MEASURE_IMBALANCE - PLATFORM_EC_BATTERY_MAX_IMBALANCE_MV Change help text in battery yamls to use Kconfigs instead of legacy CONFIGs BRANCH=main BUG=b:183544739 TEST=Define added configs to prj.conf file and verify that compilation takes them into account. Change-Id: I01716c1515350550c18bbfd4944638034a25c7b5 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3141598 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r--zephyr/Kconfig.battery32
1 files changed, 32 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery
index 086e2041f3..11d3957d43 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -417,6 +417,18 @@ config PLATFORM_EC_CONSOLE_CMD_CHGRAMP
OC 1: s0 oc_det0 icl0
OC 2: s0 oc_det0 icl0
+config PLATFORM_EC_BATTERY_CRITICAL_SHUTDOWN_CUT_OFF
+ bool "Enable battery cut off on critical power level"
+ help
+ If this option is enabled, the battery will enter cut-off
+ mode in case of critical power level.
+
+config PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS
+ bool "Monitor battery temperature while charging"
+ help
+ Enable monitoring of battery temperature while charging and
+ stop charging if is outside of the safe range.
+
config PLATFORM_EC_BATTERY_CUT_OFF
bool "Host/Console command: battery cut-off"
help
@@ -442,6 +454,26 @@ config PLATFORM_EC_BATTERY_REVIVE_DISCONNECT
this state by force-applying a charge current. Once defined,
a battery_get_disconnect_state() function has to be provided.
+config PLATFORM_EC_BATTERY_MEASURE_IMBALANCE
+ bool "Measure the battery cells imbalance"
+ help
+ Smart battery driver should measure the voltage cell imbalance in the
+ battery pack.
+ This requires a battery driver capable of the measurement.
+ If enabled, the AP enabling may be prevented if battery is too
+ imbalanced.
+
+config PLATFORM_EC_BATTERY_MAX_IMBALANCE_MV
+ int "Max battery imbalance in millivolts"
+ depends on PLATFORM_EC_BATTERY_MEASURE_IMBALANCE
+ default 200
+ help
+ Imbalanced battery packs in this situation appear to have balanced
+ charge very quickly after beginning the charging cycle, since dV/dQ
+ rapidly decreases as the cell is charged out of deep discharge.
+ Increasing the value of CHARGER_MIN_BAT_PCT_IMBALANCED_POWER_ON will
+ make a system tolerant of larger values of BATTERY_MAX_IMBALANCE_MV.
+
config PLATFORM_EC_BATT_FULL_CHIPSET_OFF_INPUT_LIMIT_MV
int "Voltage limit in mV when battery is full and AP is off"
depends on PLATFORM_EC_USB_PE_SM && PLATFORM_EC_CHARGE_MANAGER