tests: drivers: dma: Refactor tests to use data relocation

Eliminates dma tests' dependency on CONFIG_NOCACHE_MEMORY=y for
configuring dma data linker sections. This allows optionally relocating
dma source and destination data to sram or other custom linker section
on boards that don't support dma access to flash.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit is contained in:
Maureen Helm 2023-11-14 17:38:25 -06:00 committed by Carles Cufí
commit 5ff4f46d9e
8 changed files with 18 additions and 32 deletions

View file

@ -4,7 +4,8 @@ CONFIG_DMA_LOOP_TRANSFER_NUMBER_OF_DMAS=2
# Required by BDMA which only has access to
# a NOCACHE SRAM4 section. All other DMAs also
# has access to this section.
CONFIG_DMA_LOOP_TRANSFER_SRAM_SECTION="SRAM4.dma"
CONFIG_CODE_DATA_RELOCATION=y
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAM4"
# Required for SRAM4 to be non-cachable
CONFIG_NOCACHE_MEMORY=y