summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-11-18 23:40:58 -0800
committerCommit Bot <commit-bot@chromium.org>2021-11-19 23:50:08 +0000
commitc5e905a43164dab966ca055488b7801d6fed9d1b (patch)
tree5ecad38a419f95c680463e3d04d7542ecb2e4ff7 /zephyr/Kconfig.battery
parentbe260619f6fdc32ff6f8549e856cb8589c4008b4 (diff)
downloadchrome-ec-c5e905a43164dab966ca055488b7801d6fed9d1b.tar.gz
bq25710: Allow PP_IDCHG2 to be configured
This adds support for enabling PROCHOT assertion when the 2nd battery discharge current limit (IDCHG_TH2) is reached. BRANCH=none BUG=b:190737958 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I4e035c6437a728556804adbb142b59e62168cb4e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3292921 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r--zephyr/Kconfig.battery9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery
index 16664d20cf..89cccb467d 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -324,6 +324,15 @@ config PLATFORM_EC_CHARGER_BQ25710_PP_ACOK
Sets the PP_ACOK in Prochot Option 1 register. This causes
PROCHOT to be pulsed when the AC adapter is removed.
+config PLATFORM_EC_CHARGER_BQ25720_PP_IDCHG2
+ bool "Enable PROCHOT on battery current exceeding IDCHG_TH2"
+ default n
+ depends on PLATFORM_EC_CHARGER_BQ25720
+ help
+ Sets the PP_IDCHG2 bit in Charge Option 4 register. This
+ causes PROCHOT to be pulsed when the battery discharge current
+ exceeds IDCHG_TH2.
+
config PLATFORM_EC_CHARGER_BQ25710_SENSE_RESISTOR
int "Value of the charge sense-resistor, in mOhms"
default 10