summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce <Bruce.Wan@quantatw.com>2017-01-10 13:20:19 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-10 21:35:05 -0800
commit0ad4297190248684ac152543309b44a7ce497d0d (patch)
tree6af7cf9f7353447dc2fd2e4ed6d93548e0e1a341
parent3d1706f8b43e7e8584adda607d5baca03e4a178b (diff)
downloadchrome-ec-0ad4297190248684ac152543309b44a7ce497d0d.tar.gz
pyro/snappy: Add CONFIG option to maintain VBAT voltage
Follow reef setting. 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=none BRANCH=reef TEST=make buildall Change-Id: Ie7aaffc38fef65721886d00be3d6827e9e124efa Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/426499 Commit-Ready: Bruce Wan <Bruce.Wan@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--board/pyro/board.h1
-rw-r--r--board/snappy/board.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/board/pyro/board.h b/board/pyro/board.h
index b88a7ba39a..c3e6ea1455 100644
--- a/board/pyro/board.h
+++ b/board/pyro/board.h
@@ -62,6 +62,7 @@
#define CONFIG_CHARGER_INPUT_CURRENT 512
#define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 1
#define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 15000
+#define CONFIG_CHARGER_MAINTAIN_VBAT
#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1
#define CONFIG_USB_CHARGER
#define CONFIG_CHARGE_MANAGER_EXTERNAL_POWER_LIMIT
diff --git a/board/snappy/board.h b/board/snappy/board.h
index f4afcb9ca4..d58e2d986f 100644
--- a/board/snappy/board.h
+++ b/board/snappy/board.h
@@ -61,6 +61,7 @@
#define CONFIG_CHARGER_INPUT_CURRENT 512
#define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 1
#define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 15000
+#define CONFIG_CHARGER_MAINTAIN_VBAT
#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1
#define CONFIG_USB_CHARGER
#define CONFIG_CHARGE_MANAGER_EXTERNAL_POWER_LIMIT