Skip to content

Commit

Permalink
soc: intel_adsp: tools: cavstool.py: Add debug_slot_offset()
Browse files Browse the repository at this point in the history
Add debug_slot_offset() function for getting a debug slot offset by
the slot number.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
  • Loading branch information
Jyri Sarha committed Sep 23, 2024
1 parent 250d06d commit 130d66e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions soc/intel/intel_adsp/tools/cavstool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 130d66e

Please sign in to comment.