diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-10-21 22:00:00 -0700 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-10-29 06:20:08 +0000 |
commit | 0329ccef7a20d2a2389262e01a6bf7fce961234e (patch) | |
tree | 91b53a653a3f32b21f2f6c71bc18fdc8fca9fe31 | |
parent | ce0fab5872c353c3a52be35bd2e21e3b7ca44fb4 (diff) | |
download | chrome-ec-0329ccef7a20d2a2389262e01a6bf7fce961234e.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>
(cherry picked from commit 3fc374b7fd8b618d513db27d9f10c8200f603e15)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/309593
-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 d473aa2e77..29fe64b580 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -537,7 +537,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, @@ -571,7 +571,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, |