zephyr/drivers/ps2/Kconfig.npcx
Jun Lin ba39c47187 driver: PS/2: npcx: add driver support for Nuvoton npcx family
The PS/2 module in npcx provides a hardware accelerator mechanism
including an 8-bit shift register, a state machine, and control logic
that handle both the incoming and outgoing data. The hardware
accelerator mechanism is shared by 4 PS/2 channels. To support it,
this CL separates the PS/2 driver into channel and controller drivers.
The controller driver is in charge of the PS/2 transaction. The channel
driver is in charge of the connection between the Zehpyr PS/2 API
interface and controller driver.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2021-07-02 15:41:28 -04:00

28 lines
889 B
Plaintext

# NPCX PS2 configuration options
# Copyright (c) 2021 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
menuconfig PS2_NPCX
bool "Nuvoton NPCX embedded controller (EC) PS2 driver"
depends on SOC_FAMILY_NPCX && ESPI_PERIPHERAL_8042_KBC
help
Enable the NPCX family PS2 driver. It provides four PS/2 channels.
Each channel has two quasi-bidirectional signals that serve as
direct interfaces to an external keyboard, mouse or any other
PS/2-compatible pointing device.The driver also depends on the KBC
8042 keyboard controller.
if PS2_NPCX
config PS2_CHANNEL_INIT_PRIORITY
int "PS/2 channel driver init priority"
default 41
help
PS/2 channel device driver initialization priority.
This should be lower than the PS2_INIT_PRIORITY as
NPCX PS/2 controller device driver should initialize
prior to channel device driver.
endif # PS2_NPCX