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:
Christopher Friedt 2023-05-28 12:42:23 -04:00 committed by Chris Friedt
commit 88425fe3bb
20 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_DMA_EMUL=y

View file

@ -0,0 +1,12 @@
/*
* Copyright (c) 2023 Meta
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
dma-channels = <2>;
status = "okay";
};
test_dma0: &dma { };

View file

@ -0,0 +1,2 @@
CONFIG_DMA_EMUL=y
CONFIG_DMA_64BIT=y

View file

@ -0,0 +1,12 @@
/*
* Copyright (c) 2023 Meta
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
dma-channels = <2>;
status = "okay";
};
test_dma0: &dma { };