summaryrefslogtreecommitdiff
path: root/board/kukui/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/kukui/board.c')
-rw-r--r--board/kukui/board.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c
index 5476030130..2f71e46c89 100644
--- a/board/kukui/board.c
+++ b/board/kukui/board.c
@@ -14,7 +14,7 @@
#include "chipset.h"
#include "common.h"
#include "console.h"
-#include "driver/accelgyro_bmi160.h"
+#include "driver/accelgyro_bmi_common.h"
#include "driver/als_tcs3400.h"
#include "driver/bc12/pi3usb9201.h"
#include "driver/charger/rt946x.h"
@@ -359,7 +359,7 @@ void sensor_board_proc_double_tap(void)
#ifndef VARIANT_KUKUI_NO_SENSORS
static struct mutex g_lid_mutex;
-static struct bmi160_drv_data_t g_bmi160_data;
+static struct bmi_drv_data_t g_bmi160_data;
/* TCS3400 private data */
static struct als_drv_data_t g_tcs3400_data = {
@@ -430,14 +430,14 @@ static const mat33_fp_t lid_standard_ref = {
};
#endif /* BOARD_KUKUI */
-#ifdef CONFIG_MAG_BMI160_BMM150
+#ifdef CONFIG_MAG_BMI_BMM150
/* Matrix to rotate accelrator into standard reference frame */
static const mat33_fp_t mag_standard_ref = {
{0, FLOAT_TO_FP(-1), 0},
{FLOAT_TO_FP(-1), 0, 0},
{0, 0, FLOAT_TO_FP(-1)}
};
-#endif /* CONFIG_MAG_BMI160_BMM150 */
+#endif /* CONFIG_MAG_BMI_BMM150 */
struct motion_sensor_t motion_sensors[] = {
/*
@@ -458,8 +458,8 @@ struct motion_sensor_t motion_sensors[] = {
.i2c_spi_addr_flags = BMI160_ADDR0_FLAGS,
.rot_standard_ref = &lid_standard_ref,
.default_range = 4, /* 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 = {
/* Enable accel in S0 */
[SENSOR_CONFIG_EC_S0] = {
@@ -486,10 +486,10 @@ struct motion_sensor_t motion_sensors[] = {
.i2c_spi_addr_flags = BMI160_ADDR0_FLAGS,
.default_range = 1000, /* dps */
.rot_standard_ref = &lid_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,
},
-#ifdef CONFIG_MAG_BMI160_BMM150
+#ifdef CONFIG_MAG_BMI_BMM150
[LID_MAG] = {
.name = "Lid Mag",
.active_mask = SENSOR_ACTIVE_S0_S3,
@@ -506,7 +506,7 @@ struct motion_sensor_t motion_sensors[] = {
.min_frequency = BMM150_MAG_MIN_FREQ,
.max_frequency = BMM150_MAG_MAX_FREQ(SPECIAL),
},
-#endif /* CONFIG_MAG_BMI160_BMM150 */
+#endif /* CONFIG_MAG_BMI_BMM150 */
[CLEAR_ALS] = {
.name = "Clear Light",
.active_mask = SENSOR_ACTIVE_S0_S3,