From b4671da5424d1209b721b96b6e484fd86a260a34 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Tue, 28 Jun 2016 22:33:12 -0700 Subject: reef: Add I2C_PORT_ACCEL The motion sensor drivers used to rely on #defines indicating I2C or SPI port to tell which to use. However, these days the drivers get that info passed in via the motion_sensor_t struct. Now this #define simply decides whether to compile in SPI or I2C wrapper code. We should eventually make it less confusing, but that's beyond the scope for now. BUG=none BRANCH=none TEST=reef motion sensor init works now Change-Id: Ic38c57a6c070af391d2d4e2ec1a68ac90a377688 Signed-off-by: David Hendricks Reviewed-on: https://chromium-review.googlesource.com/356822 Reviewed-by: Kevin K Wong Reviewed-by: Shawn N --- board/reef/board.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/reef/board.h b/board/reef/board.h index 88ef79d411..2f197bd888 100644 --- a/board/reef/board.h +++ b/board/reef/board.h @@ -125,6 +125,13 @@ #define I2C_PORT_BATTERY NPCX_I2C_PORT3 #define I2C_PORT_CHARGER NPCX_I2C_PORT3 +/* + * FIXME: This #define is necessary for the BMI160 driver. The driver doesn't + * actually use the value, so we should eventually re-factor the driver to + * be less confusing. + */ +#define I2C_PORT_ACCEL I2C_PORT_GYRO + /* Sensors */ #define CONFIG_ACCELGYRO_BMI160 #define CONFIG_MAG_BMI160_BMM150 -- cgit v1.2.1