diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-11-30 16:23:40 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-08 06:03:50 -0800 |
commit | ab7fad125320bb719c7bfae952ffa9b8589113ee (patch) | |
tree | 97bd429eaf262bb8ff72ef36174ced1692a9cccf /board/poppy | |
parent | 0e23368429f931b8ead7abc1ac63aa0f96f51565 (diff) | |
download | chrome-ec-ab7fad125320bb719c7bfae952ffa9b8589113ee.tar.gz |
config: Add magnetometer definitions
Add all possible supported or soon-to-be supported configuration of
magnetometer behind accelerometers.
Use a more generic variable to indicate the i2c address of the secondary
device.
BUG=b:110143516,b:115587004
BRANCH=none
TEST=compile
Change-Id: Ic00c413f2ec5fa0e6bf1c98861daa02f00769a65
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1361989
Commit-Ready: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/poppy')
-rw-r--r-- | board/poppy/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/poppy/board.h b/board/poppy/board.h index c7beac8fcf..cf030f0c91 100644 --- a/board/poppy/board.h +++ b/board/poppy/board.h @@ -127,7 +127,7 @@ #define CONFIG_MAG_BMI160_BMM150 #define CONFIG_ACCEL_INTERRUPTS #define CONFIG_ACCELGYRO_BMI160_INT_EVENT TASK_EVENT_CUSTOM(4) -#define BMI160_SEC_ADDR BMM150_ADDR0 /* 8-bit address */ +#define CONFIG_ACCELGYRO_SEC_ADDR BMM150_ADDR0 /* 8-bit address */ #define CONFIG_MAG_CALIBRATE /* Lower maximal ODR to 100Hz */ #define CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ 100000 |