From 0e4640cc670d38fea8761c4809e4d31107d2c1c0 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Sat, 12 Sep 2015 00:26:10 -0700 Subject: samus: gyro is on all the time. Given it is in the chip as the accelerometer, it is on all the time. Put it in suspend by setting its ODR to 0 is S3 and S5. BRANCH=smaug BUG=none TEST=gyro still works in S0 and after S3/S5 transitions. Change-Id: Ibbf51eb555e2c513a6561a1d22e231796b3da4b4 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/299542 Reviewed-by: Alec Berg --- board/samus/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/samus/board.c b/board/samus/board.c index e9d71de370..5e53a7ba05 100644 --- a/board/samus/board.c +++ b/board/samus/board.c @@ -367,7 +367,7 @@ struct motion_sensor_t motion_sensors[] = { }, {.name = "Base Gyro", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3_S5, .chip = MOTIONSENSE_CHIP_LSM6DS0, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, -- cgit v1.2.1