diff options
author | David Hendricks <dhendrix@chromium.org> | 2016-06-28 22:33:12 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-06-29 21:32:26 -0700 |
commit | b4671da5424d1209b721b96b6e484fd86a260a34 (patch) | |
tree | 0156ff4b00c2d0aca1bf954ab87209e7d58df7e0 /board | |
parent | 4f975788e198a38fb5412c72b64dba25d9f5d217 (diff) | |
download | chrome-ec-b4671da5424d1209b721b96b6e484fd86a260a34.tar.gz |
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 <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/356822
Reviewed-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/reef/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |