Skip to content

Commit

Permalink
firmware: cs_dsp: Add mock DSP memory map for KUnit testing
Browse files Browse the repository at this point in the history
Add helper functions to implement an emulation of the DSP memory map.

There are three main groups of functionality:

1. Define a mock cs_dsp_region table.
2. Calculate the addresses of memory and algorithms from the firmware
   header in XM.
3. Build a mock XM header in emulated XM.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20241212143725.1381013-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
rfvirgil authored and broonie committed Dec 13, 2024
1 parent d54a3fc commit 41e78c0
Show file tree
Hide file tree
Showing 3 changed files with 815 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/firmware/cirrus/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#

cs_dsp_test_utils-objs := \
cs_dsp_mock_mem_maps.o \
cs_dsp_mock_regmap.o \
cs_dsp_mock_utils.o

Expand Down
Loading

0 comments on commit 41e78c0

Please sign in to comment.