Skip to content

Commit

Permalink
memory window: add MW3 access macro
Browse files Browse the repository at this point in the history
Add temporary macro for accessing memory window 3 data.

Signed-off-by: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com>
  • Loading branch information
tobonex committed May 31, 2024
1 parent 5a81836 commit 9707980
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/include/sof/debug/telemetry/telemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 9707980

Please sign in to comment.