From 2bd336f1d2658ddbad7f5bd148c45eaaed197948 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 11 Jan 2018 19:17:48 -0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/863206 Reviewed-by: Edward Hill --- board/grunt/board.h | 2 ++ 1 file changed, 2 insertions(+) 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. */