summaryrefslogtreecommitdiff
path: root/board/dooly
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-03-01 10:01:50 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-02 03:10:38 +0000
commit2cd7866a7f55aae9453518cb5b06659e7c847c9d (patch)
tree020347c8cef20e1ec060a6aa908573e2dfb36369 /board/dooly
parentc104ea6ed92dd98a76c0de6332d9b1697a3eeeb6 (diff)
downloadchrome-ec-2cd7866a7f55aae9453518cb5b06659e7c847c9d.tar.gz
dooly: Reduce maximum sensor ODR
In dooly, the accelerometer presented to Android does not use interrupts, it is polled by the EC. Given the timestamping is not as precise as interrupt driven one, reduce maximal frequency to meet CTS gaps between timestamp requirement. BUG=b:177860358 BRANCH=puff TEST=Run cheets_CTS_P.x86.CtsSensorTestCases and cheets_CTS_P.x86.CtsAppTestCases on dooly. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I19c7d38e35dba86674d606df22e2f36bd0baca91 (cherry picked from commit 8bc03f4456fe63397a76d9e29ca5382d15eb547f) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2728698
Diffstat (limited to 'board/dooly')
-rw-r--r--board/dooly/board.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/dooly/board.h b/board/dooly/board.h
index 75a0c2baa6..ccf91fc555 100644
--- a/board/dooly/board.h
+++ b/board/dooly/board.h
@@ -30,6 +30,12 @@
/* Sensor */
#define CONFIG_ACCEL_INTERRUPTS
+/*
+ * Reduce maximal sensor speed: lid accelerometer is not interrupt driven,
+ * so EC does not timestamp sensor events as accurately as interrupt
+ * driven ones.
+ */
+#define CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ 125000
#define CONFIG_CMD_ACCEL_INFO
/* Enable sensor fifo, must also define the _SIZE and _THRES */
#define CONFIG_ACCEL_FIFO