From 9707980159cf20557661ee6cb9d3c105983e5e6f Mon Sep 17 00:00:00 2001 From: Tobiasz Dryjanski Date: Wed, 22 May 2024 17:05:29 +0200 Subject: [PATCH] memory window: add MW3 access macro Add temporary macro for accessing memory window 3 data. Signed-off-by: Tobiasz Dryjanski --- src/include/sof/debug/telemetry/telemetry.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/sof/debug/telemetry/telemetry.h b/src/include/sof/debug/telemetry/telemetry.h index 959e379308e4..f3f80df83764 100644 --- a/src/include/sof/debug/telemetry/telemetry.h +++ b/src/include/sof/debug/telemetry/telemetry.h @@ -15,6 +15,12 @@ /* disables calculating systick_averages */ #define SOF_PERFORMANCE_MEASUREMENTS +/* to be moved to Zephyr */ +#define WIN3_MBASE DT_REG_ADDR(DT_PHANDLE(DT_NODELABEL(mem_window3), memory)) +#define ADSP_PMW ((volatile uint32_t *) \ + (sys_cache_uncached_ptr_get((__sparse_force void __sparse_cache *) \ + (WIN3_MBASE + WIN3_OFFSET)))) + /* Systick here is not to be confused with neither Zephyr tick nor SOF scheduler tick, * it's a legacy name for counting execution time */