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 25, 2024
1 parent 40c7a67 commit c3e7082
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 c3e7082

Please sign in to comment.