summaryrefslogtreecommitdiff
path: root/board/drawcia
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2021-01-19 16:21:36 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-26 00:42:05 +0000
commite8faab25e6926460fbb6a0427b3d93edb2825b33 (patch)
tree73ea245aece6f42fcd0ba29632da8da43008a002 /board/drawcia
parentaffbf150d56d16cbb881e239b78a38512152e777 (diff)
downloadchrome-ec-e8faab25e6926460fbb6a0427b3d93edb2825b33.tar.gz
dedede: Add MKBP_EVENT to baseboard
CtsSensorTestCases is failing on Drawcia because it requests 100 events from accelerometer and gyroscope but gets zero. We can read sensor events just fine, but they never seem to push to the kernel. Add CONFIG_MKBP_EVENT into the baseboard, and then clean up all the one-off variants that have added this themselves. Also, add some accel commands specific to drawcia for easier debugging. BUG=b:171939568 BRANCH=none TEST=Use amstan's script, which amounts to cat /dev/iio:deviceN Signed-off-by: Evan Green <evgreen@chromium.org> Change-Id: Ia796ec2f9a08d3628dcabb4b5fca425693af4099 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638636 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/drawcia')
-rw-r--r--board/drawcia/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/drawcia/board.h b/board/drawcia/board.h
index 0808a21315..0479234318 100644
--- a/board/drawcia/board.h
+++ b/board/drawcia/board.h
@@ -40,6 +40,9 @@
/* Sensors without hardware FIFO are in forced mode */
#define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL)
+#define CONFIG_CMD_ACCELS
+#define CONFIG_CMD_ACCEL_INFO
+
#define CONFIG_ACCEL_INTERRUPTS
/* Enable sensor fifo, must also define the _SIZE and _THRES */
#define CONFIG_ACCEL_FIFO