summaryrefslogtreecommitdiff
path: root/board/terrador/board.c
diff options
context:
space:
mode:
authorSamsp_Liu <Samsp_Liu@compal.corp-partner.google.com>2020-08-31 11:08:17 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-02 04:24:50 +0000
commitf2d1c7aca5aa87b3cfbd76fcc6db586bae9508d9 (patch)
treeefe1b095ae1e3925a978f4b744baa85c0d73ff31 /board/terrador/board.c
parent074b0e363491af9c82c9d54fa0c84b8df9ec2e1e (diff)
downloadchrome-ec-f2d1c7aca5aa87b3cfbd76fcc6db586bae9508d9.tar.gz
volteer: Support board-specific keyboard_config
Separate keyboard_scan_config keyscan_config from volteer baseboard to each project board. To meet different configurations on each board. BUG=b:149536282 BRANCH=none TEST=make buildall Change-Id: I9070953c02ff7d3eb4950191db6505b635371792 Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2383359 Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Diffstat (limited to 'board/terrador/board.c')
-rw-r--r--board/terrador/board.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/terrador/board.c b/board/terrador/board.c
index 0a30b259e6..303f18f184 100644
--- a/board/terrador/board.c
+++ b/board/terrador/board.c
@@ -23,6 +23,7 @@
#include "fan_chip.h"
#include "gpio.h"
#include "hooks.h"
+#include "keyboard_scan.h"
#include "lid_switch.h"
#include "power.h"
#include "power_button.h"
@@ -45,6 +46,23 @@
#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args)
+/* Keyboard scan setting */
+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 */
+ },
+};
+
+/******************************************************************************/
/*
* FW_CONFIG defaults for Terrador if the CBI data is not initialized.
*/