From 3fc374b7fd8b618d513db27d9f10c8200f603e15 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Wed, 21 Oct 2015 22:00:00 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/308204 Reviewed-by: Alec Berg --- board/ryu/board.c | 4 ++-- 1 file 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,