summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2012-08-27 22:14:09 +0800
committerYung-Chieh Lo <yjlou@chromium.org>2012-08-28 17:18:24 -0700
commit27bbb0a2d895edb466bb7d5bbb6e1c3a2c18982e (patch)
tree38b65a68bf77e9f240d8c46c4fd2ec98e46ef9c8 /board
parent8cecc9278d7aba8c8d04bc7d518b8a9bc6ae8d79 (diff)
downloadchrome-ec-release-R22-2723.B.tar.gz
Support battery cut-off mechanism for factory (R22).release-R22-2723.B
The cut-off command is manufacturer-specific. Thus the logic is implemented in gas gauge IC code. For those boards using this gas gauge, define the CONFIG_BATTERY_BQ20Z453 in board.h. Cherry-pick to R22 release image, mainly for ectool.c. BUG=chrome-os-partner:12962, BRANCH=snow Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org> TEST=Tested on snow ectool batterycutoff ; expect system is off immediately ; if AC power is not connected. Original-Change-Id: Idd290c76439f3263c1c812b236b79623878f73b2 (cherry picked from commit 84babb0520e44ea01100b91abfe0b1bd503fe88e) Change-Id: I626bba25e889269d0216991468676331c3aa726d Reviewed-on: https://gerrit.chromium.org/gerrit/31607 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Yung-Chieh Lo <yjlou@chromium.org> Tested-by: Yung-Chieh Lo <yjlou@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/snow/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/snow/board.h b/board/snow/board.h
index f84917a814..b055fcc9ca 100644
--- a/board/snow/board.h
+++ b/board/snow/board.h
@@ -52,6 +52,9 @@
#define CONFIG_CMD_PMU
+/* Battery */
+#define CONFIG_BATTERY_BQ20Z453
+
/* GPIO signal list */
enum gpio_signal {
/* Inputs with interrupt handlers are first for efficiency */