summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-10-10 15:28:15 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-30 19:11:30 -0800
commitb1014fc6bf6a5e103c494d648ee615e7d0cc3136 (patch)
tree0f22e4623d265fa11a590335f470c04d133655ca /include
parenta285debf1f1d91ea767d6a79b7109c8c42f6f3f8 (diff)
downloadchrome-ec-b1014fc6bf6a5e103c494d648ee615e7d0cc3136.tar.gz
charger: Add CONFIG option to maintain VBAT voltage
On the bd9995*, back boosting may occur when actual battery voltage drops below VBAT register setting. Maintain the VBAT register at the battery-requested charge voltage even when not charging to ensure the bd9995* doesn't become a back boosted animal. BUG=chrome-os-partner:56139,chrome-os-partner:54248 BRANCH=gru TEST=Manual on kevin, unplug AC, run 'charger', verify that 'V_batt' is maintained at 8688 mV. Attach charger, verify 'V_batt' stays at 8688 mV and device charges. Change-Id: Ia0cc7f9279cb460e20a8faf332ad432067dc5482 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/400087 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index b1655d1017..76a5e9805d 100644
--- a/include/config.h
+++ b/include/config.h
@@ -479,6 +479,13 @@
*/
#undef CONFIG_CHARGER_MAX_INPUT_CURRENT
+/*
+ * Leave charger VBAT configured to battery-requested voltage under all
+ * conditions, even when AC is not present. This may be necessary to work
+ * around quirks of certain charger chips, such as the BD9995X.
+ */
+#undef CONFIG_CHARGER_MAINTAIN_VBAT
+
/* Minimum battery percentage for power on */
#undef CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON