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>
This commit is contained in:
Jun Lin 2023-08-24 15:52:43 +08:00 committed by Carles Cufí
commit ad44c98cb7

View file

@ -5,7 +5,8 @@
menuconfig PS2_NPCX
bool "Nuvoton NPCX embedded controller (EC) PS2 driver"
depends on SOC_FAMILY_NPCX && ESPI_PERIPHERAL_8042_KBC
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