summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYH Huang <yh.huang@mediatek.com>2016-03-23 10:29:58 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-03-23 02:44:46 -0700
commitdbc03d1bf9f7831f4e0aae12c3ff4297a54b2c45 (patch)
tree290e92edc1699d866ea7dac104fd8a35e8a8db66
parentba6e37787a7b2dc143d9d3f400f0d4ecc78eb829 (diff)
downloadchrome-ec-stabilize-8104.B.tar.gz
oak: allow charging of dead battery requesting nilstabilize-8104.B
On oak battery, when the battery is dead it reports 0 for desired voltage, current, and state of charge. In this case we should allow charging. Added a CONFIG option for this that should be removed as soon as the battery side is fixed. With this CL, when a dead oak battery is used and a charger is connected, we attempt to charge it. BUG=chrome-os-partner:51454 BRANCH=none TEST=test on an oak with a dead battery. w/o this CL, the battery never charges because the charging not allowed flag is set. With this CL, the battery charges. Change-Id: If9f1250cd41aec265838e1d109f53c1bcd58c111 Signed-off-by: YH Huang <yh.huang@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/334471 Reviewed-by: Rong Chang <rongchang@chromium.org>
-rw-r--r--board/oak/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/oak/board.h b/board/oak/board.h
index 82ee7291ac..6e044b8f88 100644
--- a/board/oak/board.h
+++ b/board/oak/board.h
@@ -31,6 +31,7 @@
/* Add for AC adaptor, charger, battery */
#define CONFIG_BATTERY_CUT_OFF
#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BAT_PRESENT_L
+#define CONFIG_BATTERY_REQUESTS_NIL_WHEN_DEAD
#define CONFIG_BATTERY_SMART
#define CONFIG_CHARGE_MANAGER
#define CONFIG_CHARGER