diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-10-21 22:00:00 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-23 16:32:45 -0700 |
commit | 3fc374b7fd8b618d513db27d9f10c8200f603e15 (patch) | |
tree | cd14185cf46b6ed8fbfd6b71d892863830564790 | |
parent | daca039e2a059f08767fe235da13d4c1644039a2 (diff) | |
download | chrome-ec-3fc374b7fd8b618d513db27d9f10c8200f603e15.tar.gz |
board: ryu: Compass and Gyro stays up in S5
Gyro and compass is suspended but still powered on.
Therefore they don't need to be reinitialized.
Note that their init() does not do much, most is done when
initializing the accelerometer part of the BMI160.
BRANCH=smaug
BUG=none
TEST=Check that Gyro: MS Done Init... message are not present
when powering up the system in a loop.
Change-Id: If92727830c32407df49213db46b1d5f1cb0369af
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/308204
Reviewed-by: Alec Berg <alecaberg@chromium.org>
-rw-r--r-- | board/ryu/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/ryu/board.c b/board/ryu/board.c index a2d36dce9e..f47370d2e5 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -319,7 +319,7 @@ struct motion_sensor_t motion_sensors[] = { }, [RYU_LID_GYRO] = { .name = "Gyro", - .active_mask = SENSOR_ACTIVE_S0_S3, + .active_mask = SENSOR_ACTIVE_S0_S3_S5, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_LID, @@ -353,7 +353,7 @@ struct motion_sensor_t motion_sensors[] = { }, [RYU_LID_MAG] = { .name = "Mag", - .active_mask = SENSOR_ACTIVE_S0_S3, + .active_mask = SENSOR_ACTIVE_S0_S3_S5, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_MAG, .location = MOTIONSENSE_LOC_LID, |