diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-03-30 02:33:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-06 15:23:50 +0000 |
commit | 74a15b6bcacce1926658f81c106ff33054ab5d51 (patch) | |
tree | 42c82a07f8a9d477135c59424ca496afe479320f /zephyr/Kconfig.battery | |
parent | 11d2f6db059abdae1801cb6bcc4064d24a950ce3 (diff) | |
download | chrome-ec-74a15b6bcacce1926658f81c106ff33054ab5d51.tar.gz |
bq25720: Add VSYS_TH2 tuning support
This adds support for tuning the bq25720 VSYS_TH2 threshold so that a
custom threshold voltage can be specified. The default 3.2v for 1S
batteries and 5.9v for 2S (or more) batteries may need to be adjusted to
improve system stability. When VSYS droops to this threshold, PROCHOT is
asserted to reduce system power demand.
BRANCH=none
BUG=b:183474163
TEST=with rest of patch stack, booted brya to the OS without a battery
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Change-Id: I7f52a369371eb93860b14ad8438b790af231c450
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2798979
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 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery index 3959f26aca..52553a0079 100644 --- a/zephyr/Kconfig.battery +++ b/zephyr/Kconfig.battery @@ -204,6 +204,28 @@ endchoice # "Discharge control method" endif # PLATFORM_EC_CHARGER_DISCHARGE_ON_AC +config PLATFORM_EC_CHARGER_BQ25720_VSYS_TH2_CUSTOM + bool "VSYS_TH2 override" + depends on PLATFORM_EC_CHARGER_BQ25720 + help + Enable customizing the charger's VSYS_TH2 threshold. + +config PLATFORM_EC_CHARGER_BQ25720_VSYS_TH2_DV + int "VSYS threshold 2 in deci-volts" + range 32 95 + default 32 + depends on PLATFORM_EC_CHARGER_BQ25720_VSYS_TH2_CUSTOM + help + Sets the VSYS threshold 2 in deci volts. This is the first + threshold that will be encountered when VSYS droops, typically + due to high power demand from the main processor. The charger + chip reacts by asserting PROCHOT which the main processor uses + as an indication to throttle back and reduce power demand. The + charger chip uses default thresholds which may be low enough + to cause system instability. The default for 1S batteries is + 3.2v and 5.9v for 2S or higher batteries. The valid range is + 3.2v - 3.9v for 1S and 3.2 - 9.5v for 2S or higher batteries. + config PLATFORM_EC_CHARGER_NARROW_VDC bool help |