summaryrefslogtreecommitdiff
path: root/board/nami/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/nami/board.c')
-rw-r--r--board/nami/board.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/board/nami/board.c b/board/nami/board.c
index a5d38bd0d8..b3aa7f91cd 100644
--- a/board/nami/board.c
+++ b/board/nami/board.c
@@ -19,7 +19,7 @@
#include "console.h"
#include "cros_board_info.h"
#include "driver/pmic_tps650x30.h"
-#include "driver/accelgyro_bmi160.h"
+#include "driver/accelgyro_bmi_common.h"
#include "driver/accel_bma2x2.h"
#include "driver/accel_kionix.h"
#include "driver/baro_bmp280.h"
@@ -725,7 +725,7 @@ static struct mutex g_lid_mutex;
static struct mutex g_base_mutex;
/* Lid accel private data */
-static struct bmi160_drv_data_t g_bmi160_data;
+static struct bmi_drv_data_t g_bmi160_data;
static struct kionix_accel_data g_kx022_data;
/* BMA255 private data */
@@ -818,8 +818,8 @@ struct motion_sensor_t motion_sensors[] = {
.port = I2C_PORT_ACCEL,
.i2c_spi_addr_flags = BMI160_ADDR0_FLAGS,
.rot_standard_ref = &base_standard_ref,
- .min_frequency = BMI160_ACCEL_MIN_FREQ,
- .max_frequency = BMI160_ACCEL_MAX_FREQ,
+ .min_frequency = BMI_ACCEL_MIN_FREQ,
+ .max_frequency = BMI_ACCEL_MAX_FREQ,
.default_range = 4, /* g, to meet CDD 7.3.1/C-1-4 reqs */
.config = {
/* EC use accel for angle detection */
@@ -847,8 +847,8 @@ struct motion_sensor_t motion_sensors[] = {
.i2c_spi_addr_flags = BMI160_ADDR0_FLAGS,
.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,
},
};
unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);