From 441bfd5608cf607ba8c36af4afaac79881cdecca Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Tue, 4 Apr 2017 21:34:40 -0700 Subject: eve: Disable sensors in S5 The accelerometer sensors are not needed in S5, and having them get enabled early in boot is causing issues on a subset of boards. Similarly, the magnatometer is supposed to be disabled in S3/S5. BUG=b:36919184 BRANCH=none TEST=successfully boot on board that was previously failing Change-Id: I3c079a83b21b2f1875330ac16ef8d3f9da267f9f Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/468686 Reviewed-by: Todd Broch --- board/eve/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/eve/board.c b/board/eve/board.c index 7493ea249b..31e97ce75c 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -747,7 +747,7 @@ struct motion_sensor_t motion_sensors[] = { [LID_ACCEL] = { .name = "Lid Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_KXCJ9, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_LID, @@ -783,7 +783,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_ACCEL] = { .name = "Base Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_BASE, @@ -810,7 +810,7 @@ struct motion_sensor_t motion_sensors[] = { .odr = 10000 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, - /* Sensor off in S3/S5 */ + /* Sensor off in S5 */ [SENSOR_CONFIG_EC_S5] = { .odr = 0, .ec_rate = 0 @@ -857,7 +857,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_MAG] = { .name = "Base Mag", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_MAG, .location = MOTIONSENSE_LOC_BASE, -- cgit v1.2.1