drivers: select nocache only when supported

NOCACHE_MEMORY depends on ARCH_HAS_NOCACHE_MEMORY_SUPPORT, so
don't try to select the symbol if not supported.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2023-09-26 11:31:13 +07:00 committed by Carles Cufí
commit ca3310145f
12 changed files with 12 additions and 12 deletions

View file

@ -5,6 +5,6 @@ config MDIO_NXP_S32_NETC
bool "NXP S32 NETC External MDIO driver"
default y
depends on DT_HAS_NXP_S32_NETC_EMDIO_ENABLED
select NOCACHE_MEMORY
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
Enable NETC External MDIO Controller driver for NXP S32 SoCs.