From ad44c98cb7daa54805a23859f0bbb00de08b7446 Mon Sep 17 00:00:00 2001 From: Jun Lin Date: Thu, 24 Aug 2023 15:52:43 +0800 Subject: [PATCH] driver: ps2: npcx: use the device Kconfig symbol The npcx ps2 driver does not use the DT_HAS__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 --- drivers/ps2/Kconfig.npcx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ps2/Kconfig.npcx b/drivers/ps2/Kconfig.npcx index e14e680eb3a..afbec76d926 100644 --- a/drivers/ps2/Kconfig.npcx +++ b/drivers/ps2/Kconfig.npcx @@ -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