espi: npcx: Fix driver Kconfig

Update the Kconfig for the npcx eSPI driver so it's automatically
enabled if the devicetree node is enabled.

Signed-off-by: Keith Short <keithshort@google.com>
This commit is contained in:
Keith Short 2023-11-29 16:36:21 -07:00 committed by Anas Nashif
commit 8fb92ba9cd
4 changed files with 2 additions and 12 deletions

View file

@ -5,7 +5,9 @@
config ESPI_NPCX config ESPI_NPCX
bool "Nuvoton NPCX embedded controller (EC) ESPI driver" bool "Nuvoton NPCX embedded controller (EC) ESPI driver"
default y
depends on SOC_FAMILY_NPCX depends on SOC_FAMILY_NPCX
depends on DT_HAS_NUVOTON_NPCX_ESPI_ENABLED
help help
This option enables the Intel Enhanced Serial Peripheral Interface This option enables the Intel Enhanced Serial Peripheral Interface
(eSPI) for NPCX family of processors. (eSPI) for NPCX family of processors.

View file

@ -14,10 +14,6 @@ config NUM_IRQS
config CORTEX_M_SYSTICK config CORTEX_M_SYSTICK
default !NPCX_ITIM_TIMER default !NPCX_ITIM_TIMER
config ESPI_NPCX
default y
depends on ESPI
source "soc/arm/nuvoton_npcx/npcx4/Kconfig.defconfig.npcx4*" source "soc/arm/nuvoton_npcx/npcx4/Kconfig.defconfig.npcx4*"
endif # SOC_SERIES_NPCX4 endif # SOC_SERIES_NPCX4

View file

@ -14,10 +14,6 @@ config NUM_IRQS
config CORTEX_M_SYSTICK config CORTEX_M_SYSTICK
default !NPCX_ITIM_TIMER default !NPCX_ITIM_TIMER
config ESPI_NPCX
default y
depends on ESPI
source "soc/arm/nuvoton_npcx/npcx7/Kconfig.defconfig.npcx7*" source "soc/arm/nuvoton_npcx/npcx7/Kconfig.defconfig.npcx7*"
endif # SOC_SERIES_NPCX7 endif # SOC_SERIES_NPCX7

View file

@ -14,10 +14,6 @@ config NUM_IRQS
config CORTEX_M_SYSTICK config CORTEX_M_SYSTICK
default !NPCX_ITIM_TIMER default !NPCX_ITIM_TIMER
config ESPI_NPCX
default y
depends on ESPI
source "soc/arm/nuvoton_npcx/npcx9/Kconfig.defconfig.npcx9*" source "soc/arm/nuvoton_npcx/npcx9/Kconfig.defconfig.npcx9*"
endif # SOC_SERIES_NPCX9 endif # SOC_SERIES_NPCX9