Skip to content

Commit

Permalink
arch: mtk: force enable cache for MTK platform
Browse files Browse the repository at this point in the history
if_cached always returns true

Signed-off-by: Darren Ye <[email protected]>
  • Loading branch information
Darren Ye committed Jan 16, 2025
1 parent d2ab33a commit 4aa8fa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arch/xtensa/include/arch/lib/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ extern uint32_t _memmap_cacheattr_reset;
(_addr_attr(address) == 4))
#endif /* CONFIG_COMPILER_WORKAROUND_CACHE_ATTR */

#else /* CONFIG_IMX */
#elif defined(CONFIG_MEDIATEK)
#define is_cached(address) (1)
#else
#define is_cached(address) (!!((uintptr_t)(address) & SRAM_UNCACHED_ALIAS))
#endif

Expand Down

0 comments on commit 4aa8fa1

Please sign in to comment.