summaryrefslogtreecommitdiff
path: root/board/volmar/keyboard.c
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2022-01-05 09:14:12 +0800
committerCommit Bot <commit-bot@chromium.org>2022-01-05 03:40:27 +0000
commitb78af1aba9df76325d577c9aebe54ef3c1ecd3f8 (patch)
tree4804004570aecb1d5b8799e07ba80a8015aa2135 /board/volmar/keyboard.c
parent4ce4e703871425975c34ed30962328dc899347fe (diff)
downloadchrome-ec-b78af1aba9df76325d577c9aebe54ef3c1ecd3f8.tar.gz
volmar: Initial EC image
Create the initial EC image for the volmar variant by copying the brya reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.5.0). BUG=b:213127419 BRANCH=None TEST=make BOARD=volmar Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Change-Id: I9cae46fd3a260416e335c96b2c2d5de580d130e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367355 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/volmar/keyboard.c')
-rw-r--r--board/volmar/keyboard.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/board/volmar/keyboard.c b/board/volmar/keyboard.c
new file mode 100644
index 0000000000..133d574dfa
--- /dev/null
+++ b/board/volmar/keyboard.c
@@ -0,0 +1,25 @@
+/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "common.h"
+
+#include "keyboard_scan.h"
+#include "timer.h"
+
+/* Keyboard scan setting */
+__override struct keyboard_scan_config keyscan_config = {
+ /* Increase from 50 us, because KSO_02 passes through the H1. */
+ .output_settle_us = 80,
+ /* Other values should be the same as the default configuration. */
+ .debounce_down_us = 9 * MSEC,
+ .debounce_up_us = 30 * MSEC,
+ .scan_period_us = 3 * MSEC,
+ .min_post_scan_delay_us = 1000,
+ .poll_timeout_us = 100 * MSEC,
+ .actual_key_mask = {
+ 0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
+ 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
+ },
+};