summaryrefslogtreecommitdiff
path: root/board/damu/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/damu/board.c')
-rw-r--r--board/damu/board.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/board/damu/board.c b/board/damu/board.c
index 4721f857ca..c0ce68c309 100644
--- a/board/damu/board.c
+++ b/board/damu/board.c
@@ -15,7 +15,7 @@
#include "common.h"
#include "console.h"
#include "driver/accel_lis2dw12.h"
-#include "driver/accelgyro_bmi160.h"
+#include "driver/accelgyro_bmi_common.h"
#include "driver/battery/max17055.h"
#include "driver/bc12/pi3usb9201.h"
#include "driver/charger/isl923x.h"
@@ -332,7 +332,7 @@ static const mat33_fp_t lid_standard_ref = {
/* Lid accel private data */
static struct stprivate_data g_lis2dwl_data;
/* Base accel private data */
-static struct bmi160_drv_data_t g_bmi160_data;
+static struct bmi_drv_data_t g_bmi160_data;
struct motion_sensor_t motion_sensors[] = {
[LID_ACCEL] = {
@@ -379,8 +379,8 @@ struct motion_sensor_t motion_sensors[] = {
.i2c_spi_addr_flags = SLAVE_MK_SPI_ADDR_FLAGS(CONFIG_SPI_ACCEL_PORT),
.rot_standard_ref = &base_standard_ref,
.default_range = 2, /* g, to meet CDD 7.3.1/C-1-4 reqs */
- .min_frequency = BMI160_ACCEL_MIN_FREQ,
- .max_frequency = BMI160_ACCEL_MAX_FREQ,
+ .min_frequency = BMI_ACCEL_MIN_FREQ,
+ .max_frequency = BMI_ACCEL_MAX_FREQ,
.config = {
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
@@ -407,8 +407,8 @@ struct motion_sensor_t motion_sensors[] = {
.i2c_spi_addr_flags = SLAVE_MK_SPI_ADDR_FLAGS(CONFIG_SPI_ACCEL_PORT),
.default_range = 1000, /* dps */
.rot_standard_ref = &base_standard_ref,
- .min_frequency = BMI160_GYRO_MIN_FREQ,
- .max_frequency = BMI160_GYRO_MAX_FREQ,
+ .min_frequency = BMI_GYRO_MIN_FREQ,
+ .max_frequency = BMI_GYRO_MAX_FREQ,
},
};
const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);