From 377aa876a3087e809a0784bd543603e77156b04b Mon Sep 17 00:00:00 2001 From: Francisco Munoz Date: Mon, 11 Nov 2019 16:42:10 -0800 Subject: [PATCH] drivers: ps2: Compile out PS/2 in terms of an eSPI peripheral Add the possibility to compile out the PS/2 driver if the application is not using the KBC 8042 peripheral. This helps to remove warnings for unused PS/2 isr function Signed-off-by: Francisco Munoz --- drivers/ps2/Kconfig.xec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ps2/Kconfig.xec b/drivers/ps2/Kconfig.xec index 732c679abf4..cc297a7fcbc 100644 --- a/drivers/ps2/Kconfig.xec +++ b/drivers/ps2/Kconfig.xec @@ -5,9 +5,10 @@ menuconfig PS2_XEC bool "XEC Microchip PS2 driver" - depends on SOC_FAMILY_MEC + depends on SOC_FAMILY_MEC && ESPI_PERIPHERAL_8042_KBC help - Enable the Microchip XEC PS2 IO driver. + Enable the Microchip XEC PS2 IO driver. The driver also + depends on the KBC 8042 keyboard controller. if PS2_XEC