summaryrefslogtreecommitdiff
path: root/board/willow/board.c
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-06-07 16:10:42 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-09 17:44:19 +0000
commit7837e2011cf7c4d8690a17f9b7d89768a5a01d4c (patch)
tree48758199beccadd5b67e5a6f7b749e62c8a4e881 /board/willow/board.c
parent5927d4ccc51a131e075c1aad44532caa2faa7ef0 (diff)
downloadchrome-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/willow/board.c')
-rw-r--r--board/willow/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/willow/board.c b/board/willow/board.c
index b6e62e35ee..fbdc4e10bd 100644
--- a/board/willow/board.c
+++ b/board/willow/board.c
@@ -382,7 +382,7 @@ 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,
@@ -410,7 +410,7 @@ 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,