diff options
author | Jett Rink <jettrink@chromium.org> | 2018-10-26 13:36:26 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-30 01:04:59 -0700 |
commit | f420a49e257769b94a991416d0ebf4a30f5c9668 (patch) | |
tree | 64a608911ff4497c0ca072c75afd612728455de2 | |
parent | 97c6609f8dc889a2e70daea5147776bb6c2bdbe2 (diff) | |
download | chrome-ec-f420a49e257769b94a991416d0ebf4a30f5c9668.tar.gz |
octopus: update active_mask for consistency
The base gyro and base accel are the same chip and they are on in S3 and
S0 and off in S5. Update the active_make for all other octopus boards
that haven't already updated it.
BRANCH=none
BUG=none
TEST=build and sensors still work.
Change-Id: I96004ba0b20dd9366848bb2fe610c250e07850aa
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1302833
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | board/bobba/board.c | 20 | ||||
-rw-r--r-- | board/fleex/board.c | 2 | ||||
-rw-r--r-- | board/phaser/board.c | 2 | ||||
-rw-r--r-- | board/yorp/board.c | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/board/bobba/board.c b/board/bobba/board.c index 00171ecd23..9bcfd777f5 100644 --- a/board/bobba/board.c +++ b/board/bobba/board.c @@ -201,7 +201,7 @@ struct motion_sensor_t motion_sensors[] = { }, [BASE_GYRO] = { .name = "Base Gyro", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, @@ -216,15 +216,15 @@ struct motion_sensor_t motion_sensors[] = { .max_frequency = BMI160_GYRO_MAX_FREQ, }, [VSYNC] = { - .name = "Camera VSYNC", - .active_mask = SENSOR_ACTIVE_S0, - .chip = MOTIONSENSE_CHIP_GPIO, - .type = MOTIONSENSE_TYPE_SYNC, - .location = MOTIONSENSE_LOC_CAMERA, - .drv = &sync_drv, - .default_range = 0, - .min_frequency = 0, - .max_frequency = 1, + .name = "Camera VSYNC", + .active_mask = SENSOR_ACTIVE_S0, + .chip = MOTIONSENSE_CHIP_GPIO, + .type = MOTIONSENSE_TYPE_SYNC, + .location = MOTIONSENSE_LOC_CAMERA, + .drv = &sync_drv, + .default_range = 0, + .min_frequency = 0, + .max_frequency = 1, }, }; diff --git a/board/fleex/board.c b/board/fleex/board.c index 3d8e7b8e09..9497d97b78 100644 --- a/board/fleex/board.c +++ b/board/fleex/board.c @@ -192,7 +192,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_GYRO] = { .name = "Base Gyro", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_LSM6DSM, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, diff --git a/board/phaser/board.c b/board/phaser/board.c index 5fbb451a2e..384e61ef3b 100644 --- a/board/phaser/board.c +++ b/board/phaser/board.c @@ -194,7 +194,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_GYRO] = { .name = "Base Gyro", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_LSM6DSM, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, diff --git a/board/yorp/board.c b/board/yorp/board.c index 7d4ee431e8..1b2dccf4b1 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -166,7 +166,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_GYRO] = { .name = "Base Gyro", - .active_mask = SENSOR_ACTIVE_S0, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_LSM6DSM, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, |