summaryrefslogtreecommitdiff
path: root/board/ryu/board.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-07-18 15:06:22 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-20 07:46:37 +0000
commit4eee9fe42688e77c6c845a3904adb531a75f569a (patch)
tree91c763be46e70bb1ebe34ea982d88247146cd2bf /board/ryu/board.h
parent3bb7de950f007ec554d73f0d2b480c68e562e5bc (diff)
downloadchrome-ec-4eee9fe42688e77c6c845a3904adb531a75f569a.tar.gz
i2c: Add variable to set slave address of the EC.stabilize-6082.B
Only one EC was an i2c slave, samus_pd. Now we have 2 more, ryu and ryu_sh (sensor hub). Define a new variable: CONFIG_HOSTCMD_I2C_SLAVE_ADDR TEST=Compiled BRANCH=None BUG=chrome-os-partner:30740 Change-Id: I484aaf5ca72f14a91ce261b91fbe600dca3474dc Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/208978 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/ryu/board.h')
-rw-r--r--board/ryu/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/ryu/board.h b/board/ryu/board.h
index 0e7087a98b..6c38c4863b 100644
--- a/board/ryu/board.h
+++ b/board/ryu/board.h
@@ -51,6 +51,11 @@
#define I2C_PORT_CHARGER I2C_PORT_MASTER
#define I2C_PORT_BATTERY I2C_PORT_MASTER
+/* slave address for host commands */
+#ifdef HAS_TASK_HOSTCMD
+#define CONFIG_HOSTCMD_I2C_SLAVE_ADDR 0x3c
+#endif
+
#ifndef __ASSEMBLER__
/* Timer selection */