summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2020-10-15 16:56:09 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-26 12:45:56 +0000
commitaf21737a0eac063700e6b9bab4c50be82f66bbaf (patch)
tree2a67324eb84a65a073348feb3ab0bcdcfb626a7a
parentf06f0143b50326c158ecf5bb96d488d0cc5124ab (diff)
downloadchrome-ec-af21737a0eac063700e6b9bab4c50be82f66bbaf.tar.gz
voxel: add Lid operates in forced mode
add define Lid force mode mask BUG=b:162940877,b:171009897 BRANCH=none TEST=Using ectool 'motionsense' verified lid angle now goes from 0 to 360 and swtiches to tablet mode after crossing 200 threshold. Change-Id: I04679d770ab8bcdf84bfd5b2b742feacdd53a743 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2477402 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/voxel/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/voxel/board.h b/board/voxel/board.h
index 9f81e1da5b..3ced8f5510 100644
--- a/board/voxel/board.h
+++ b/board/voxel/board.h
@@ -43,6 +43,8 @@
#define CONFIG_ACCELGYRO_BMI160
#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \
TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL)
+/* Lid operates in forced mode, base in FIFO */
+#define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL)
/* BMA253 Lid accel */
#define CONFIG_ACCEL_BMA255