summaryrefslogtreecommitdiff
path: root/board/dooly
diff options
context:
space:
mode:
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