summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2012-06-17 12:03:55 +0800
committerGerrit <chrome-bot@google.com>2012-06-20 07:12:17 -0700
commitbffc0fd3a2c098911a0af206d2e3c1441a6b37be (patch)
tree20f211ad132265c15bf581d60fd85cd1eef941b2
parentd93672660ab5fb57159b11a668d608f35afa5fe5 (diff)
downloadchrome-ec-bffc0fd3a2c098911a0af206d2e3c1441a6b37be.tar.gz
Enable snow battery charging
This change adds battery and PMU driver to snow board configuration. Charging is enabled in init function. EC I2C host is set to I2C2. Signed-off-by: Rong Chang <rongchang@chromium.org> BUG=chrome-os-partner:10608 TEST=manual Run uart console command 'i2c r 0x90 4'. Change-Id: Ie09749c33c6093a46ba0ea44d42910417a67f37a Reviewed-on: https://gerrit.chromium.org/gerrit/25501 Tested-by: Rong Chang <rongchang@chromium.org> Commit-Ready: Rong Chang <rongchang@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org>
-rw-r--r--board/snow/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/snow/board.h b/board/snow/board.h
index 564ca29e59..0db8aebfec 100644
--- a/board/snow/board.h
+++ b/board/snow/board.h
@@ -32,6 +32,13 @@
/* EC drives 13 outputs to keyboard matrix */
#define KB_OUTPUTS 13
+/* Charging */
+#define CONFIG_SMART_BATTERY
+#define CONFIG_PMU_TPS65090
+#define I2C_PORT_HOST 1
+#define I2C_PORT_BATTERY I2C_PORT_HOST
+#define I2C_PORT_CHARGER I2C_PORT_HOST
+
/* GPIO signal list */
enum gpio_signal {
/* Inputs with interrupt handlers are first for efficiency */