summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-09-12 15:33:52 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-09-17 08:40:58 -0700
commitd6fc44599ace6d92b41ab930b6a6b02ae00a4689 (patch)
treeea637fd30b5d196b1a3069fc1e651d998a825441
parent8cf4925294d0111dd020563180b4c39d38e1eac4 (diff)
downloadchrome-ec-d6fc44599ace6d92b41ab930b6a6b02ae00a4689.tar.gz
octopus: correct base sensor lifetime
All base sensor are off during S5 and turn on in S4. Update the active mask to reflect this which also ensure that the sensor is getting initialized at the correct time. BRANCH=none BUG=b:115278651 TEST=fleex base sensor now works. Change-Id: Id4b30fbab02dadf55ed0809fefef3938474fe818 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1222091 Commit-Ready: Matt Wang <matt_wang@compal.corp-partner.google.com> Tested-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Reviewed-by: Justin TerAvest <teravest@chromium.org>
-rw-r--r--board/bobba/board.c2
-rw-r--r--board/fleex/board.c2
-rw-r--r--board/meep/board.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/board/bobba/board.c b/board/bobba/board.c
index 9245f71821..6bbdccaa8e 100644
--- a/board/bobba/board.c
+++ b/board/bobba/board.c
@@ -155,7 +155,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,
diff --git a/board/fleex/board.c b/board/fleex/board.c
index d9227928b7..a6e430217c 100644
--- a/board/fleex/board.c
+++ b/board/fleex/board.c
@@ -164,7 +164,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_LSM6DSM,
.type = MOTIONSENSE_TYPE_ACCEL,
.location = MOTIONSENSE_LOC_BASE,
diff --git a/board/meep/board.c b/board/meep/board.c
index 725e8b186b..d45c2933c6 100644
--- a/board/meep/board.c
+++ b/board/meep/board.c
@@ -162,7 +162,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_LSM6DSM,
.type = MOTIONSENSE_TYPE_ACCEL,
.location = MOTIONSENSE_LOC_BASE,