diff options
author | Michael5 Chen <michael5_chen@pegatroncorp.com> | 2019-10-21 17:31:36 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-28 01:00:31 +0000 |
commit | 6841c7835416d03aefb939ff94b3e9221e81c355 (patch) | |
tree | 326bb4fc716517488e773f1dd41f29c10f68a960 /board/helios/board.c | |
parent | db93764becfb53cb172cf6c7f0828b260b140817 (diff) | |
download | chrome-ec-6841c7835416d03aefb939ff94b3e9221e81c355.tar.gz |
helios: Remove ALS OPT3001 configuration
Helios does not have an ambient light sensor (ALS).
Remove the ALS OPT3001 configuration.
BUG=b:142881461
BRANCH=None
TEST=Manual
Check EC console message.
Change-Id: I91b94b3f9842621fc7b70e8dc9e84533174febfd
Signed-off-by: Michael5 Chen <michael5_chen@pegatroncorp.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1871491
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'board/helios/board.c')
-rw-r--r-- | board/helios/board.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/board/helios/board.c b/board/helios/board.c index 5630416818..4ad7596a2e 100644 --- a/board/helios/board.c +++ b/board/helios/board.c @@ -202,12 +202,6 @@ static struct bmi160_drv_data_t g_bmi160_data; /* BMA255 private data */ static struct accelgyro_saved_data_t g_bma255_data; -static struct opt3001_drv_data_t g_opt3001_data = { - .scale = 1, - .uscale = 0, - .offset = 0, -}; - /* Matrix to rotate accelrator into standard reference frame */ static const mat33_fp_t base_standard_ref = { { 0, FLOAT_TO_FP(1), 0}, @@ -291,37 +285,9 @@ struct motion_sensor_t motion_sensors[] = { .min_frequency = BMI160_GYRO_MIN_FREQ, .max_frequency = BMI160_GYRO_MAX_FREQ, }, - - [LID_ALS] = { - .name = "Light", - .active_mask = SENSOR_ACTIVE_S0_S3, - .chip = MOTIONSENSE_CHIP_OPT3001, - .type = MOTIONSENSE_TYPE_LIGHT, - .location = MOTIONSENSE_LOC_LID, - .drv = &opt3001_drv, - .drv_data = &g_opt3001_data, - .port = I2C_PORT_ACCEL, - .i2c_spi_addr_flags = OPT3001_I2C_ADDR_FLAGS, - .rot_standard_ref = NULL, - .default_range = 0x2b11a1, - .min_frequency = OPT3001_LIGHT_MIN_FREQ, - .max_frequency = OPT3001_LIGHT_MAX_FREQ, - .config = { - /* Run ALS sensor in S0 */ - [SENSOR_CONFIG_EC_S0] = { - .odr = 1000, - }, - }, - }, }; unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); -/* ALS instances when LPC mapping is needed. Each entry directs to a sensor. */ -const struct motion_sensor_t *motion_als_sensors[] = { - &motion_sensors[LID_ALS], -}; -BUILD_ASSERT(ARRAY_SIZE(motion_als_sensors) == ALS_COUNT); - /******************************************************************************/ /* Physical fans. These are logically separate from pwm_channels. */ |