summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-04-04 21:34:40 -0700
committerDuncan Laurie <dlaurie@google.com>2017-04-05 09:23:00 +0000
commit441bfd5608cf607ba8c36af4afaac79881cdecca (patch)
tree3bf21e9de30fc2d5c95acca47ba71e8f9c012200
parent460371042c5422fdad907ded7b8dfe547e16e2ee (diff)
downloadchrome-ec-441bfd5608cf607ba8c36af4afaac79881cdecca.tar.gz
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 <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/468686 Reviewed-by: Todd Broch <tbroch@chromium.org>
-rw-r--r--board/eve/board.c8
1 files 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,