mirror of https://github.com/thesofproject/sof.git
platform: imx8m: Add SDMA definition
This commit adds the definition of the SDMA controller we use for SOF, namely SDMA2 (the other instances of SDMA are used for non-audio-related DMA in the system). This DMAC can serve the SAI. A way to account for channel 0 being used internally needs to be added. Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
parent
b3420a5b1b
commit
c941b0a9f1
|
@ -12,6 +12,7 @@
|
|||
#include <sof/spinlock.h>
|
||||
|
||||
extern struct dma_ops dummy_dma_ops;
|
||||
extern struct dma_ops sdma_ops;
|
||||
|
||||
SHARED_DATA struct dma dma[PLATFORM_NUM_DMACS] = {
|
||||
{
|
||||
|
@ -23,6 +24,21 @@ SHARED_DATA struct dma dma[PLATFORM_NUM_DMACS] = {
|
|||
},
|
||||
.ops = &dummy_dma_ops,
|
||||
},
|
||||
{
|
||||
.plat_data = {
|
||||
.id = DMA_ID_SDMA2,
|
||||
/* Note: support is available for MEM_TO_MEM but not
|
||||
* enabled as it is unneeded
|
||||
*/
|
||||
.dir = DMA_DIR_MEM_TO_DEV | DMA_DIR_DEV_TO_MEM,
|
||||
.devs = DMA_DEV_SAI,
|
||||
.base = SDMA2_BASE,
|
||||
.channels = 32,
|
||||
.irq = SDMA2_IRQ,
|
||||
.irq_name = SDMA2_IRQ_NAME,
|
||||
},
|
||||
.ops = &sdma_ops,
|
||||
},
|
||||
};
|
||||
|
||||
const struct dma_info lib_dma = {
|
||||
|
|
Loading…
Reference in New Issue