soc/mediatek/mtk_adsp: Support __nocache

This is a pre-existing (but rarely used) Zephyr linker tag.  Support
it instead of reinventing something similar.

Signed-off-by: Andy Ross <andyross@google.com>
This commit is contained in:
Andy Ross 2024-12-12 17:26:53 -08:00 committed by Henrik Brix Andersen
commit 2cbce9e8d1
2 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,9 @@ config IRQ_OFFLOAD_NESTED
default n if SOC_SERIES_MT818X default n if SOC_SERIES_MT818X
default y default y
config NOCACHE_MEMORY
default y
config MTK_ADSP_TIMER config MTK_ADSP_TIMER
default y default y
config XTENSA_TIMER config XTENSA_TIMER

View file

@ -110,6 +110,11 @@ SECTIONS {
_end = .; _end = .;
_mtk_adsp_dram_end = .; _mtk_adsp_dram_end = .;
.nocache (NOLOAD) : {
. = ALIGN(4096);
*(.nocache .nocache.*)
} > dram
/* Non-runtime-loaded sections below */ /* Non-runtime-loaded sections below */
#include <zephyr/linker/debug-sections.ld> #include <zephyr/linker/debug-sections.ld>