From c3e70823f47ca3a0aff55a619440018aadb950b1 Mon Sep 17 00:00:00 2001 From: Jyri Sarha Date: Thu, 19 Sep 2024 20:28:01 +0300 Subject: [PATCH] soc: intel_adsp: tools: cavstool.py: Add debug_slot_offset() Add debug_slot_offset() function for getting a debug slot offset by the slot number. Signed-off-by: Jyri Sarha --- soc/intel/intel_adsp/tools/cavstool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soc/intel/intel_adsp/tools/cavstool.py b/soc/intel/intel_adsp/tools/cavstool.py index 9718ef894b9901..874bd1de6faa5e 100755 --- a/soc/intel/intel_adsp/tools/cavstool.py +++ b/soc/intel/intel_adsp/tools/cavstool.py @@ -745,6 +745,9 @@ def debug_offset(): ( base, stride ) = adsp_mem_window_config() return base + stride * 2 +def debug_slot_offset(num): + return debug_offset() + DEBUG_SLOT_SIZE * (1 + num) + def shell_base_offset(): return debug_offset() + DEBUG_SLOT_SIZE * (1 + DEBUG_SLOT_SHELL)