summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-03-30 02:33:43 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-06 15:23:50 +0000
commit74a15b6bcacce1926658f81c106ff33054ab5d51 (patch)
tree42c82a07f8a9d477135c59424ca496afe479320f /include
parent11d2f6db059abdae1801cb6bcc4064d24a950ce3 (diff)
downloadchrome-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 'include')
-rw-r--r--include/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index c0a88cda53..8e7db9af9c 100644
--- a/include/config.h
+++ b/include/config.h
@@ -983,6 +983,16 @@
#undef CONFIG_CHARGER_BQ25710_IDCHG_LIMIT_MA
/*
+ * This config option is used to set the charger's VSYS voltage
+ * threshold. When the voltage drops to this level, PROCHOT is asserted
+ * by the charger to request reduced system power demand and hopefully
+ * avoid a voltage droop leading to system instability. The voltage is
+ * specified in deci-volts, so a value of 80 would set the threshold to
+ * 8.0v.
+ */
+#undef CONFIG_CHARGER_BQ25720_VSYS_TH2_DV
+
+/*
* Board specific maximum input current limit, in mA.
*/
#undef CONFIG_CHARGER_MAX_INPUT_CURRENT