diff options
author | Diana Z <dzigterman@chromium.org> | 2021-06-07 16:10:42 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-09 17:44:19 +0000 |
commit | 7837e2011cf7c4d8690a17f9b7d89768a5a01d4c (patch) | |
tree | 48758199beccadd5b67e5a6f7b749e62c8a4e881 /board/cerise/board.c | |
parent | 5927d4ccc51a131e075c1aad44532caa2faa7ef0 (diff) | |
download | chrome-ec-7837e2011cf7c4d8690a17f9b7d89768a5a01d4c.tar.gz |
COIL: Rename motion sense address macros
Update the motion_sense.h address macros to reflect our current i2c
terms, and also to specify that these are used exclusively in the
accelerometer code.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ibad287df2ba1ecd0b6f3061599476636ac7a5354
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946316
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/cerise/board.c')
-rw-r--r-- | board/cerise/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/cerise/board.c b/board/cerise/board.c index ddad67cd77..8ca775b8e8 100644 --- a/board/cerise/board.c +++ b/board/cerise/board.c @@ -397,7 +397,8 @@ struct motion_sensor_t motion_sensors[] = { .mutex = &g_base_mutex, .drv_data = &g_bmi160_data, .port = CONFIG_SPI_ACCEL_PORT, - .i2c_spi_addr_flags = SLAVE_MK_SPI_ADDR_FLAGS(CONFIG_SPI_ACCEL_PORT), + .i2c_spi_addr_flags = + ACCEL_MK_SPI_ADDR_FLAGS(CONFIG_SPI_ACCEL_PORT), .rot_standard_ref = &base_standard_ref, .default_range = 4, /* g, to meet CDD 7.3.1/C-1-4 reqs */ .min_frequency = BMI_ACCEL_MIN_FREQ, @@ -425,7 +426,8 @@ struct motion_sensor_t motion_sensors[] = { .mutex = &g_base_mutex, .drv_data = &g_bmi160_data, .port = CONFIG_SPI_ACCEL_PORT, - .i2c_spi_addr_flags = SLAVE_MK_SPI_ADDR_FLAGS(CONFIG_SPI_ACCEL_PORT), + .i2c_spi_addr_flags = + ACCEL_MK_SPI_ADDR_FLAGS(CONFIG_SPI_ACCEL_PORT), .default_range = 1000, /* dps */ .rot_standard_ref = &base_standard_ref, .min_frequency = BMI_GYRO_MIN_FREQ, |