summaryrefslogtreecommitdiff
path: root/board/ryu/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/ryu/board.c')
-rw-r--r--board/ryu/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/ryu/board.c b/board/ryu/board.c
index 6673296c31..487bc75c22 100644
--- a/board/ryu/board.c
+++ b/board/ryu/board.c
@@ -168,7 +168,8 @@ static void board_init(void)
if (board_has_spi_sensors()) {
for (i = MOTIONSENSE_TYPE_ACCEL;
i <= MOTIONSENSE_TYPE_MAG; i++) {
- motion_sensors[i].addr = BMI160_SET_SPI_ADDRESS(1);
+ motion_sensors[i].addr =
+ BMI160_SET_SPI_ADDRESS(CONFIG_SPI_ACCEL_PORT);
}
/* SPI sensors: put back the GPIO in its expected state */
gpio_set_level(GPIO_SPI3_NSS, 1);