tests: drivers: dma: test dma_emul driver on native_posix boards
Add support for testing the `dma_emul` driver which simply uses software emulation (i.e. asynchronous memcpy in a workqueue) for performing DMA operations. Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
parent
09ff569c9e
commit
88425fe3bb
20 changed files with 124 additions and 0 deletions
1
tests/drivers/dma/loop_transfer/boards/native_posix.conf
Normal file
1
tests/drivers/dma/loop_transfer/boards/native_posix.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_DMA_EMUL=y
|
12
tests/drivers/dma/loop_transfer/boards/native_posix.overlay
Normal file
12
tests/drivers/dma/loop_transfer/boards/native_posix.overlay
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Meta
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&dma {
|
||||
dma-channels = <2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
test_dma0: &dma { };
|
|
@ -0,0 +1,2 @@
|
|||
CONFIG_DMA_EMUL=y
|
||||
CONFIG_DMA_64BIT=y
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Meta
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&dma {
|
||||
dma-channels = <2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
test_dma0: &dma { };
|
Loading…
Add table
Add a link
Reference in a new issue