summaryrefslogtreecommitdiff
path: root/zephyr/drivers/cros_kb_raw/Kconfig
blob: e8b0112c0ded1fdb35d75e6af12dfe82eb0ceaae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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.

if PLATFORM_EC_KEYBOARD

menuconfig CROS_KB_RAW_NPCX
	bool "Nuvoton NPCX raw-keyboard-scan driver for the Zephyr shim"
	depends on SOC_FAMILY_NPCX
	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.

if CROS_KB_RAW_NPCX

config CROS_KB_RAW_NPCX_KSO_HIGH_DRIVE
	bool "Enable quasi-bidirectional buffers for KSO pins"
	help
	  This option enables quasi-bidirectional buffers for KSO pins. The
	  low-impedance high drive is active when ec changes the output data
	  buffers from 0 to 1, thereby reducing the low-to-high transition time.

endif # CROS_KB_RAW_NPCX

config 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.

endif # PLATFORM_EC_KEYBOARD