summaryrefslogtreecommitdiff
path: root/board/daisy
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-06-22 20:41:02 +0000
committerGerrit <chrome-bot@google.com>2012-06-22 15:14:07 -0700
commitee4ec72613b01ed47bb5844ce9c61636e7469a03 (patch)
tree7407be11d4e0e3a939662c413007b15d7162dac0 /board/daisy
parentbc672dd30c145faf427fa257b413485f80f24a78 (diff)
downloadchrome-ec-ee4ec72613b01ed47bb5844ce9c61636e7469a03.tar.gz
stm32: don't try to use the AP I2C connection when the CPU is running
If the EC shares the I2C-2 bus with the battery and the charger, we don't want to be a master on that bus when the AP is ON and can send us I2C messages. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=none TEST=on Lucas DVT, check we can read battery info when AP is OFF and we cannot when AP is ON. Change-Id: I920a10ae9eff31bd00e4d3a5aec19d6f03b65a33 Reviewed-on: https://gerrit.chromium.org/gerrit/25959 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/daisy')
-rw-r--r--board/daisy/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/daisy/board.h b/board/daisy/board.h
index fe0a708620..3c88816f69 100644
--- a/board/daisy/board.h
+++ b/board/daisy/board.h
@@ -39,6 +39,7 @@
#define I2C_PORT_HOST board_i2c_host_port()
#define I2C_PORT_BATTERY I2C_PORT_HOST
#define I2C_PORT_CHARGER I2C_PORT_HOST
+#define I2C_PORT_SLAVE 1
/* GPIO signal list */
enum gpio_signal {