Skip to content

Commit 9d78aa2

Browse files
committed
tests: drivers: dma: loop_transfer: add support for nucleo_h753zi
add .conf and .overlay files with appropriate configurations for nucleo_h753zi. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 1ed6cb2 commit 9d78aa2

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=5
2+
CONFIG_DMA_LOOP_TRANSFER_NUMBER_OF_DMAS=2
3+
4+
# Required by BDMA which only has access to
5+
# a NOCACHE SRAM4 section. All other DMAs also
6+
# has access to this section.
7+
CONFIG_CODE_DATA_RELOCATION=y
8+
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAM4"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*/
4+
5+
&dma1 {
6+
status = "okay";
7+
};
8+
9+
&dma2 {
10+
status = "okay";
11+
};
12+
13+
tst_dma0: &dmamux1 {
14+
status = "okay";
15+
};
16+
17+
/* The BDMA driver expects the SRAM4 region
18+
* to be non-cachable.
19+
*/
20+
&sram4 {
21+
zephyr,memory-attr = <DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE)>;
22+
};
23+
24+
&bdma1 {
25+
status = "okay";
26+
};
27+
28+
tst_dma1: &dmamux2 {
29+
status = "okay";
30+
};

0 commit comments

Comments
 (0)