zephyr/drivers/ps2/Kconfig.npcx
Jun Lin ad44c98cb7 driver: ps2: npcx: use the device Kconfig symbol
The npcx ps2 driver does not use the DT_HAS_<compat>_ENABLED Kconfig
symbol to enable the driver. This commits update the Kconig file to
use it and also drop the dependency on ESPI_PERIPHERAL_8042_KBC.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2023-08-31 10:19:52 +02:00

29 lines
896 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 DT_HAS_NUVOTON_NPCX_PS2_CHANNEL_ENABLED
default y
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