Kconfig: make `COMPILER_WORKAROUND_CACHE_ATTR` depend on xtensa

`CONFIG_COMPILER_WORKAROUND_CACHE_ATTR` is only applicable to
xtensa-based platforms. As such, add dependency on `CONFIG_XTENSA`.

Additionally, `CONFIG_IMX` should be selected by all imx platforms.
Since not all imx platforms are xtensa-based, make sure
`COMPILER_WORKAROUND_CACHE_ATTR` is selected only for those platforms.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2024-08-19 14:50:51 +03:00 committed by Daniel Baluta
parent 0e5ba1fb70
commit aa42205027
2 changed files with 2 additions and 1 deletions

View File

@ -108,6 +108,7 @@ config XT_INTERRUPT_LEVEL_5
config COMPILER_WORKAROUND_CACHE_ATTR config COMPILER_WORKAROUND_CACHE_ATTR
bool bool
default n default n
depends on XTENSA
help help
Select this to activate use of functions instead of macros Select this to activate use of functions instead of macros
to decide whether an address is cacheable or not. to decide whether an address is cacheable or not.

View File

@ -293,7 +293,7 @@ config HOST
config IMX config IMX
bool bool
default n default n
select COMPILER_WORKAROUND_CACHE_ATTR select COMPILER_WORKAROUND_CACHE_ATTR if XTENSA
help help
This has to be selected for every i.MX NXP platform. This has to be selected for every i.MX NXP platform.
It enables NXP platforms-specific features. It enables NXP platforms-specific features.