diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-10-22 10:36:53 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 21:33:53 +0000 |
commit | e13ae71531154667cb714d691a5129a8b7932ec3 (patch) | |
tree | 91a606fa663da6ee72e667134d4ba61ecfdcbdd2 | |
parent | c0011fb7c05c528b627c2f95125f48a95a85a9d4 (diff) | |
download | chrome-ec-e13ae71531154667cb714d691a5129a8b7932ec3.tar.gz |
Trogdor: Do not activate g-sensors in S5
The g-sensors are not necessary to be active in S5; no gesture
recognition in Trogdor designs. Do not activate it in S5.
Though without this change, EC doesn't read the g-sensors as
there is no config (zero odr) for S5.
BRANCH=None
BUG=b:170288119
TEST=Still read the g-sensors on S0 and S3.
Change-Id: I54e8012e2674e13273e5fe9b96e9e9e6086e6490
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2492529
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
-rw-r--r-- | board/coachz/board.c | 4 | ||||
-rw-r--r-- | board/lazor/board.c | 4 | ||||
-rw-r--r-- | board/pompom/board.c | 4 | ||||
-rw-r--r-- | board/trogdor/board.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/board/coachz/board.c b/board/coachz/board.c index 57f3cccc73..aa09f671ad 100644 --- a/board/coachz/board.c +++ b/board/coachz/board.c @@ -257,7 +257,7 @@ struct motion_sensor_t motion_sensors[] = { */ [LID_ACCEL] = { .name = "Lid Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_LID, @@ -278,7 +278,7 @@ struct motion_sensor_t motion_sensors[] = { }, [LID_GYRO] = { .name = "Gyro", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_LID, diff --git a/board/lazor/board.c b/board/lazor/board.c index e4792f2783..343b12a200 100644 --- a/board/lazor/board.c +++ b/board/lazor/board.c @@ -321,7 +321,7 @@ struct motion_sensor_t motion_sensors[] = { */ [BASE_ACCEL] = { .name = "Base Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_BASE, @@ -347,7 +347,7 @@ struct motion_sensor_t motion_sensors[] = { }, [BASE_GYRO] = { .name = "Gyro", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, diff --git a/board/pompom/board.c b/board/pompom/board.c index 11832231d0..eb90084e19 100644 --- a/board/pompom/board.c +++ b/board/pompom/board.c @@ -509,7 +509,7 @@ struct motion_sensor_t motion_sensors[] = { */ [BASE_ACCEL] = { .name = "Base Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_BASE, @@ -534,7 +534,7 @@ struct motion_sensor_t motion_sensors[] = { }, [BASE_GYRO] = { .name = "Gyro", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, diff --git a/board/trogdor/board.c b/board/trogdor/board.c index 193ff8f96a..1fe0773230 100644 --- a/board/trogdor/board.c +++ b/board/trogdor/board.c @@ -511,7 +511,7 @@ struct motion_sensor_t motion_sensors[] = { */ [BASE_ACCEL] = { .name = "Base Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_BASE, @@ -532,7 +532,7 @@ struct motion_sensor_t motion_sensors[] = { }, [BASE_GYRO] = { .name = "Gyro", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_BMI160, .type = MOTIONSENSE_TYPE_GYRO, .location = MOTIONSENSE_LOC_BASE, |