diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-12-26 15:27:01 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-28 11:01:45 -0800 |
commit | 3240ae71518e5d229e795b6fcd6248de46c22eac (patch) | |
tree | 640a510014670c40244ac6869aa3f667497ad6cf | |
parent | f3931a6cd7a0c69e64caf87aa6ff3d9a4fdabf50 (diff) | |
download | chrome-ec-3240ae71518e5d229e795b6fcd6248de46c22eac.tar.gz |
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: I7f46b82aaf8cc92bb60c7963d04dd04043cdaadb
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1390938
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
-rw-r--r-- | board/eve/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/eve/board.c b/board/eve/board.c index a8288d5d9d..1af42167b3 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -875,7 +875,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, @@ -892,7 +892,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, |