Skip to content

Commit c68004c

Browse files
talih0kartben
authored andcommitted
tests: dma: scatter_gather: Add xmc45/47_relax_kit overlay
Also add 0x prefix to print statement in test. Signed-off-by: Andriy Gelman <[email protected]>
1 parent aea1ff9 commit c68004c

File tree

6 files changed

+42
-2
lines changed

6 files changed

+42
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Andriy Gelman
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DMA_SG_XFER_SIZE=4096
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Andriy Gelman <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
dma0 = &dma0;
10+
};
11+
};
12+
13+
&dma0 {
14+
status = "okay";
15+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Andriy Gelman
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DMA_SG_XFER_SIZE=4096
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Andriy Gelman <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
dma0 = &dma0;
10+
};
11+
};
12+
13+
&dma0 {
14+
status = "okay";
15+
};

tests/drivers/dma/scatter_gather/src/test_dma_sg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ static int test_sg(void)
105105
#ifdef CONFIG_DMA_64BIT
106106
dma_block_cfgs[i].source_address = (uint64_t)(tx_data);
107107
dma_block_cfgs[i].dest_address = (uint64_t)(rx_data[i]);
108-
TC_PRINT("dma block %d block_size %d, source addr %" PRIx64 ", dest addr %"
108+
TC_PRINT("dma block %d block_size %d, source addr 0x%" PRIx64 ", dest addr 0x%"
109109
PRIx64 "\n", i, CONFIG_DMA_SG_XFER_SIZE, dma_block_cfgs[i].source_address,
110110
dma_block_cfgs[i].dest_address);
111111
#else
112112
dma_block_cfgs[i].source_address = (uint32_t)(tx_data);
113113
dma_block_cfgs[i].dest_address = (uint32_t)(rx_data[i]);
114-
TC_PRINT("dma block %d block_size %d, source addr %x, dest addr %x\n",
114+
TC_PRINT("dma block %d block_size %d, source addr 0x%x, dest addr 0x%x\n",
115115
i, CONFIG_DMA_SG_XFER_SIZE, dma_block_cfgs[i].source_address,
116116
dma_block_cfgs[i].dest_address);
117117
#endif

tests/drivers/dma/scatter_gather/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ tests:
1212
- lpcxpresso55s36
1313
- native_sim
1414
- native_sim/native/64
15+
- xmc45_relax_kit
16+
- xmc47_relax_kit
1517
filter: dt_alias_exists("dma0")
1618
integration_platforms:
1719
- intel_adsp/cavs25

0 commit comments

Comments
 (0)