summaryrefslogtreecommitdiff
path: root/board/coachz
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2020-12-03 16:53:03 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-17 03:02:19 +0000
commit3b1f01e3942b0fb8f07e9c113d79522a1f261815 (patch)
treecb06dfcc1869e39780e7140685d14beacc0e6a52 /board/coachz
parentb415b09817b9b500869c6428dbb6ccd3fdf4fbd5 (diff)
downloadchrome-ec-3b1f01e3942b0fb8f07e9c113d79522a1f261815.tar.gz
coachz: config: Add on-body detection config
Add on-body detection configuration on CoachZ devices BRANCH=None BUG=b:169374265 TEST=make buildall Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Change-Id: I9f3ad1b968ec9a03a49ac3fc4b32efc001599e39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2570890 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/coachz')
-rw-r--r--board/coachz/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/coachz/board.h b/board/coachz/board.h
index 76480b892b..8272e76bde 100644
--- a/board/coachz/board.h
+++ b/board/coachz/board.h
@@ -10,6 +10,14 @@
#include "baseboard.h"
+/* On-body detection */
+#define CONFIG_BODY_DETECTION
+#define CONFIG_BODY_DETECTION_SENSOR LID_ACCEL
+#define CONFIG_BODY_DETECTION_VAR_NOISE_FACTOR 150 /* % */
+#define CONFIG_GESTURE_DETECTION
+#define CONFIG_GESTURE_DETECTION_MASK BIT(CONFIG_BODY_DETECTION_SENSOR)
+#define CONFIG_GESTURE_HOST_DETECTION
+
/* TODO(waihong): Remove the following bringup features */
#define CONFIG_BRINGUP
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands. */