diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-11-02 23:43:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-17 22:06:24 +0000 |
commit | 07de73c3113f35226eff345469336a50c83eb1f3 (patch) | |
tree | 4383209d0e1257f8d58c6ac877a6815968f2c16a /zephyr/Kconfig.battery | |
parent | a19c2540ff286fa652f561700b15fa545851a9c6 (diff) | |
download | chrome-ec-07de73c3113f35226eff345469336a50c83eb1f3.tar.gz |
bq25710: Allow IDCHG_TH2 to be customized
This adds support for configuring the charger's 2nd battery discharge
current limit (IDCHG_TH2).
BRANCH=none
BUG=b:185190976
TEST=buildall passes
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Change-Id: I84512b7a93ccea8e8b0a53e6a655f59e85845e2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3284638
Reviewed-by: 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 0d09926a55..16664d20cf 100644 --- a/zephyr/Kconfig.battery +++ b/zephyr/Kconfig.battery @@ -399,6 +399,24 @@ config PLATFORM_EC_CHARGER_BQ25720_IDCHG_DEG2 value 1 (1.6 ms). The encoded value ranges from 100 us to 12 ms. +config PLATFORM_EC_CHARGER_BQ25720_IDCHG_TH2_CUSTOM + bool "IDCHG_TH2 override" + depends on PLATFORM_EC_CHARGER_BQ25720 + help + Enable customizing the charger's 2nd battery discharge current + limit (IDCHG_TH2). + +config PLATFORM_EC_CHARGER_BQ25720_IDCHG_TH2 + int "IDCHG threshold 2" + range 0 7 + default 1 + depends on PLATFORM_EC_CHARGER_BQ25720_IDCHG_TH2_CUSTOM + help + Sets the charger's 2nd battery discharge current limit + (IDCHG_TH2) as a percentage of IDCHG_TH1. This is a 3 bit + field with default value 1 (150%). The encoded value ranges + from 125% to 400%. + config PLATFORM_EC_CHARGER_BQ25710_VSYS_MIN_VOLTAGE_CUSTOM bool "Enable minimum system voltage override" depends on PLATFORM_EC_CHARGER_BQ25710 || PLATFORM_EC_CHARGER_BQ25720 |