mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
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>
This commit is contained in:
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user