diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-11-08 19:20:26 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-11 20:58:24 +0000 |
commit | 861ec5cdbd133f55cd0dd786ae847a109e39d868 (patch) | |
tree | 416128d2b622ebe02e146fca7deede6241beac76 /zephyr/Kconfig.battery | |
parent | db9d4127c375bab318861a8c4d0f738a6b7e88b7 (diff) | |
download | chrome-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.battery | 9 |
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 |