diff options
Diffstat (limited to 'board/voema')
-rw-r--r-- | board/voema/sensors.c | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/board/voema/sensors.c b/board/voema/sensors.c index 2e9a4adf08..833d231275 100644 --- a/board/voema/sensors.c +++ b/board/voema/sensors.c @@ -31,7 +31,6 @@ static struct accelgyro_saved_data_t g_bma253_lid_data; static struct icm_drv_data_t g_icm426xx_data; -static struct kionix_accel_data g_kx022_base_data; static struct kionix_accel_data g_kx022_lid_data; /* TCS3400 private data */ @@ -134,33 +133,6 @@ struct motion_sensor_t kx022_lid_accel = { }, }; -struct motion_sensor_t kx022_basse_accel = { - .name = "Base Accel", - .active_mask = SENSOR_ACTIVE_S0_S3, - .chip = MOTIONSENSE_CHIP_KX022, - .type = MOTIONSENSE_TYPE_ACCEL, - .location = MOTIONSENSE_LOC_BASE, - .drv = &kionix_accel_drv, - .mutex = &g_lid_accel_mutex, - .drv_data = &g_kx022_base_data, - .port = I2C_PORT_SENSOR, - .i2c_spi_addr_flags = KX022_ADDR1_FLAGS, - .rot_standard_ref = &base_standard_ref, - .min_frequency = KX022_ACCEL_MIN_FREQ, - .max_frequency = KX022_ACCEL_MAX_FREQ, - .default_range = 2, /* g, to support tablet mode */ - .config = { - /* EC use accel for angle detection */ - [SENSOR_CONFIG_EC_S0] = { - .odr = 10000 | ROUND_UP_FLAG, - }, - /* EC use accel for angle detection */ - [SENSOR_CONFIG_EC_S3] = { - .odr = 10000 | ROUND_UP_FLAG, - }, - }, -}; - struct motion_sensor_t motion_sensors[] = { [LID_ACCEL] = { .name = "Lid Accel", @@ -311,10 +283,11 @@ static void baseboard_sensors_init(void) /* Enable interrupt for the TCS3400 color light sensor */ gpio_enable_interrupt(GPIO_EC_ALS_RGB_INT_L); - if (get_cbi_ssfc_base_sensor() == SSFC_SENSOR_BASE_KX022) { - motion_sensors[BASE_ACCEL] = kx022_basse_accel; - ccprints("BASE_ACCEL is KX022"); - } else if (IS_ENABLED(BOARD_VOEMA) && get_cbi_ssfc_base_sensor() == + /* + * TODO: If a SSFC for the base sensor is added, add the check + * here. + */ + if (IS_ENABLED(BOARD_VOEMA) && get_cbi_ssfc_base_sensor() == SSFC_SENSOR_BASE_ICM426XX) { gpio_enable_interrupt(GPIO_EC_MB_ACCEL_INT_L); motion_sensors[BASE_ACCEL] = icm_base_accel; |