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:
parent
246ec224e2
commit
5ff4f46d9e
8 changed files with 18 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue