diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-11-02 23:37:55 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-16 23:09:38 +0000 |
commit | dece2984b4faa7d70545c9f078b775f3fa14f40a (patch) | |
tree | d6352078e93b161f065c202050d466e2e9d77f35 /zephyr/Kconfig.battery | |
parent | 2004c2e926eca5b8f65b8155b985e7b3000c65d7 (diff) | |
download | chrome-ec-dece2984b4faa7d70545c9f078b775f3fa14f40a.tar.gz |
bq25710: Allow IDCHG_DEG2 to be customized
This adds support for configuring the IDCHG_TH2 deglitch time
(IDCHG_DEG2).
BRANCH=none
BUG=b:185190976
TEST=buildall passes
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Change-Id: I6426b46b253863a28edeb431da6c581953484db7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3284637
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.battery | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery index 24c3710170..9b1a9278da 100644 --- a/zephyr/Kconfig.battery +++ b/zephyr/Kconfig.battery @@ -381,6 +381,24 @@ config PLATFORM_EC_CHARGER_BQ25720_VSYS_UVP encoded is (0.8 * <value> + 2.4), allowing a threshold in the range of 2.4 V to 8.0 V to be specified. +config PLATFORM_EC_CHARGER_BQ25720_IDCHG_DEG2_CUSTOM + bool "IDCHG_TH2 deglitch time override" + depends on PLATFORM_EC_CHARGER_BQ25720 + help + Enable customizing the charger's 2nd battery discharge current + limit (IDCHG_TH2) deglitch time (IDCHG_DEG2). + +config PLATFORM_EC_CHARGER_BQ25720_IDCHG_DEG2 + int "IDCHG_TH2 deglitch time" + range 0 3 + default 1 + depends on PLATFORM_EC_CHARGER_BQ25720_IDCHG_DEG2_CUSTOM + help + Sets the 2nd battery discharge current limit (IDCHG_TH2) + deglitch time (IDCHG_DEG2). This is a 2 bit field with default + value 1 (1.6 ms). The encoded value ranges from 100 us to 12 + ms. + config PLATFORM_EC_CHARGER_MAINTAIN_VBAT bool "Maintain VBAT voltage regardless of AC state" help |