diff options
author | Ruibin Chang <Ruibin.Chang@ite.com.tw> | 2021-05-21 17:27:12 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-25 06:21:31 +0000 |
commit | b5cba6b5005d3e427ba29388bf4cedf9e7803512 (patch) | |
tree | 14164b3197747f9b50c82b26ad5f19b816b304d7 /zephyr/drivers | |
parent | edc2839d0d6315c8f00280fd4fe523910c1bd939 (diff) | |
download | chrome-ec-b5cba6b5005d3e427ba29388bf4cedf9e7803512.tar.gz |
zephyr: hayato: Enable config to support keyboard scan
Enable config for keyboard scan function, and we use default keyboard
scan timing config on board hayato.
BUG=b:187192587
BRANCH=none
TEST=on hayato, console cmd "ksstate" then press key:
[115.097839 KB state: -- -- -- 02 -- -- 02 -- -- -- -- -- --]
[116.462371 KB state: -- -- -- -- -- -- 02 -- -- -- -- -- --]
[116.499633 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
Change-Id: Ie717d7333c2ff3f4279ec7c2f8c01fcb306fc5ad
Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2883376
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/drivers')
-rw-r--r-- | zephyr/drivers/cros_kb_raw/Kconfig | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/zephyr/drivers/cros_kb_raw/Kconfig b/zephyr/drivers/cros_kb_raw/Kconfig index fb525261c4..3109009da5 100644 --- a/zephyr/drivers/cros_kb_raw/Kconfig +++ b/zephyr/drivers/cros_kb_raw/Kconfig @@ -1,6 +1,6 @@ - -# Copyright 2020 Google LLC -# SPDX-License-Identifier: Apache-2.0 +# Copyright 2021 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. menuconfig CROS_KB_RAW_NPCX bool "Nuvoton NPCX raw-keyboard-scan driver for the Zephyr shim" @@ -11,3 +11,13 @@ menuconfig CROS_KB_RAW_NPCX keyboard-scan peripheral in the chip. This is used instead of the kscan interface so we can continue to use most of the existing keyboard-scanning code in ECOS. + +menuconfig CROS_KB_RAW_ITE + bool "ITE raw-keyboard-scan driver for the Zephyr shim" + depends on SOC_FAMILY_RISCV_ITE + default y + help + This option enables a driver for providing raw access to the + keyboard-scan peripheral in the chip. This is used instead of the + kscan interface so we can continue to use most of the existing + keyboard-scanning code in ECOS. |