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,7 +5,7 @@ config NXP_S32_SPI
bool "NXP S32 SPI driver"
default y
depends on DT_HAS_NXP_S32_SPI_ENABLED
select NOCACHE_MEMORY
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
Enable support for NXP S32 SPI driver.