From 39d10c7e537e7b1c2ece072c5ee89e76a73f3ce2 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Wed, 26 Dec 2018 15:27:01 -0800 Subject: eve: Set power state for sensors properly BMI160 and BMM150 are powered by PP3300_DSW, so they are up all the time. No need to reinitialize them when moving to S0. BUG=chromium:917868 BRANCH=eve TEST=Using ToT firmware on eve, check gyro and magnetometer are not initialized when device boots. Change-Id: I447ef95e8647eafd28a5820baa2d1464d5ebb720 Signed-off-by: Duncan Laurie Original-Commit-Id: Original-Change-Id: I7f46b82aaf8cc92bb60c7963d04dd04043cdaadb Original-Signed-off-by: Gwendal Grignou Original-Reviewed-on: https://chromium-review.googlesource.com/1390938 Original-Commit-Ready: ChromeOS CL Exonerator Bot Original-Reviewed-by: Scott Collyer Original-Reviewed-by: Furquan Shaikh Original-Reviewed-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1702794 Reviewed-by: Gwendal Grignou --- board/eve/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/eve/board.c b/board/eve/board.c index ecf4d22431..6b0627862e 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -895,7 +895,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_GYRO] = { .name = "Base Gyro", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3_S5, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, @@ -934,7 +934,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_MAG] = { .name = "Base Mag", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3_S5, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_MAG, .location = MOTIONSENSE_LOC_BASE, -- cgit v1.2.1