summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-01-11 19:17:48 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-12 14:31:21 -0800
commit2bd336f1d2658ddbad7f5bd148c45eaaed197948 (patch)
treec61e197efe0504c2f814e7abe4ce61a94cace431 /board
parent9802a28f19df1e0e948d085b6bdfe99f2698eda6 (diff)
downloadchrome-ec-2bd336f1d2658ddbad7f5bd148c45eaaed197948.tar.gz
grunt: Add I2C support for the BMI160
We need to enable I2C_PORT_ACCEL so that the driver supports I2C transfers. BUG=b:71877225 BRANCH=none TEST=On EC console: > accelinit 1 > accelread 1 With this CL we avoid an error Change-Id: I9b7018ef9615992d91fbf8685832ff73c3cc1172 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/863206 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/grunt/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/grunt/board.h b/board/grunt/board.h
index 5175424082..2e2a086f30 100644
--- a/board/grunt/board.h
+++ b/board/grunt/board.h
@@ -118,6 +118,8 @@
#define I2C_PORT_TCPC1 NPCX_I2C_PORT2_0
#define I2C_PORT_THERMAL NPCX_I2C_PORT3_0
#define I2C_PORT_SENSOR NPCX_I2C_PORT7_0
+/* Accelerometer and Gyroscope are the same device. */
+#define I2C_PORT_ACCEL I2C_PORT_SENSOR
#define CONFIG_BRINGUP /* TODO(teravest): Remove this later. */