summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-11-08 19:20:26 -0800
committerCommit Bot <commit-bot@chromium.org>2021-11-11 20:58:24 +0000
commit861ec5cdbd133f55cd0dd786ae847a109e39d868 (patch)
tree416128d2b622ebe02e146fca7deede6241beac76 /zephyr/Kconfig.battery
parentdb9d4127c375bab318861a8c4d0f738a6b7e88b7 (diff)
downloadchrome-ec-861ec5cdbd133f55cd0dd786ae847a109e39d868.tar.gz
bq25710: Allow EN_ACOC to be configured
This adds support for enabling AC over-current protection (EN_ACOC bit). The converter turns off when the OC threshold is reached. The threshold is determined by the ACOC_VTH bit. BRANCH=none BUG=b:185190976 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I1bc8e34ee4e7cef0d6d796387eb4f290fada82d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3274999 Reviewed-by: Keith Short <keithshort@chromium.org>
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 116f1ff3b0..3f8518c8e6 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -270,6 +270,15 @@ config PLATFORM_EC_CHARGER_BQ25710_CMP_REF_1P2
voltage to 1.2 V. The power-on default is 2.3 V. This must be
enabled if the board was designed for 1.2 V instead of 2.3 V.
+config PLATFORM_EC_CHARGER_BQ25710_EN_ACOC
+ bool "Enable AC over-current protection"
+ default n
+ depends on PLATFORM_EC_CHARGER_BQ25710 || PLATFORM_EC_CHARGER_BQ25720
+ help
+ This enables the charger's AC over-current protection. The
+ converter turns off when the OC threshold is reached. The
+ threshold is selected using the ACOC_VTH bit.
+
config PLATFORM_EC_CHARGER_BQ25710_SENSE_RESISTOR
int "Value of the charge sense-resistor, in mOhms"
default 10