Skip to content

Commit 4da0fc1

Browse files
committed
tests: drivers: dma: chan_blen_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 5227b52 commit 4da0fc1

File tree

2 files changed

+41
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)