Skip to content

Commit 4aa8fa1

Browse files
author
Darren Ye
committed
arch: mtk: force enable cache for MTK platform
if_cached always returns true Signed-off-by: Darren Ye <darren.ye@mediatek.com>
1 parent d2ab33a commit 4aa8fa1

File tree

1 file changed

+3
-1
lines changed
  • src/arch/xtensa/include/arch/lib

1 file changed

+3
-1
lines changed

src/arch/xtensa/include/arch/lib/cache.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ extern uint32_t _memmap_cacheattr_reset;
8686
(_addr_attr(address) == 4))
8787
#endif /* CONFIG_COMPILER_WORKAROUND_CACHE_ATTR */
8888

89-
#else /* CONFIG_IMX */
89+
#elif defined(CONFIG_MEDIATEK)
90+
#define is_cached(address) (1)
91+
#else
9092
#define is_cached(address) (!!((uintptr_t)(address) & SRAM_UNCACHED_ALIAS))
9193
#endif
9294

0 commit comments

Comments
 (0)