summaryrefslogtreecommitdiff
path: root/board/gimble/board.h
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2021-07-28 17:19:47 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-29 01:36:20 +0000
commit67c4d42c36e9a4f96c7d7365e47d3bebc7036404 (patch)
treea127aa721c66eb6c67132039fb90f767ec5012d6 /board/gimble/board.h
parentd9b3e3e119e10760001c6739d473648e5a772bbc (diff)
downloadchrome-ec-67c4d42c36e9a4f96c7d7365e47d3bebc7036404.tar.gz
gimble: fix motion sensors support
- Gimble need to add FIFO support for BMI160. - Also add CONFIG_LID_ANGLE_UPDATE for disable keyboard when AP unable control the keyboard. BUG=b:192423158 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I3c8306764fd0a52a3bf08c0a95d9f8eecf849054 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058160 Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/gimble/board.h')
-rw-r--r--board/gimble/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/gimble/board.h b/board/gimble/board.h
index 4f7e6d26cb..144be95449 100644
--- a/board/gimble/board.h
+++ b/board/gimble/board.h
@@ -40,9 +40,17 @@
/* Lid accel */
#define CONFIG_LID_ANGLE
+#define CONFIG_LID_ANGLE_UPDATE
#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL
+/* Enable sensor fifo, must also define the _SIZE and _THRES */
+#define CONFIG_ACCEL_FIFO
+/* FIFO size is in power of 2. */
+#define CONFIG_ACCEL_FIFO_SIZE 256
+/* Depends on how fast the AP boots and typical ODRs */
+#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3)
+
/* Sensor console commands */
#define CONFIG_CMD_ACCELS
#define CONFIG_CMD_ACCEL_INFO