arch:xtensa: add XTENSA_CACHE config support

Add support for XTENSA_HAVE_ICACHE & XTENSA_HAVE_DACHE
This commit is contained in:
zhuyanlin 2021-09-06 11:18:47 +08:00 committed by Xiang Xiao
parent 5ad1cba338
commit d6fe0f18f5

View File

@ -70,6 +70,30 @@ config ARCH_CHIP_XTENSA_CUSTOM
endchoice # XTENSA chip selection
config XTENSA_HAVE_ICACHE
bool
default n
config XTENSA_HAVE_DCACHE
bool
default n
config XTENSA_ICACHE
bool "Use I-Cache"
default n
depends on XTENSA_HAVE_ICACHE
select ARCH_ICACHE
---help---
Enable Xtensa I-Cache
config XTENSA_DCACHE
bool "Use D-Cache"
default n
depends on XTENSA_HAVE_DCACHE
select ARCH_DCACHE
---help---
Enable Xtensa D-Cache
config ARCH_FAMILY_LX6
bool
default n