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 <francisco.munoz.ruiz@intel.com>
This commit is contained in:
Francisco Munoz 2019-11-11 16:42:10 -08:00 committed by Anas Nashif
commit 377aa876a3

View file

@ -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