diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-12-26 15:27:01 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-16 20:45:16 +0000 |
commit | 39d10c7e537e7b1c2ece072c5ee89e76a73f3ce2 (patch) | |
tree | 14f45e3dd2d3ea562093f2755b22a93a655be804 | |
parent | 81dae0840ce0f5f37f01e4fe5742b1c206b112dd (diff) | |
download | chrome-ec-39d10c7e537e7b1c2ece072c5ee89e76a73f3ce2.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: I447ef95e8647eafd28a5820baa2d1464d5ebb720
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Original-Commit-Id:
Original-Change-Id: I7f46b82aaf8cc92bb60c7963d04dd04043cdaadb
Original-Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/1390938
Original-Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Original-Reviewed-by: Scott Collyer <scollyer@chromium.org>
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1702794
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
-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 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, |