platform: imx8m: sdma: Add SDMA definitions for i.MX8M platform

This includes interrupt number and a tweak used when probing the driver
(which must match hardware configuration).

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2020-03-20 18:20:47 +02:00 committed by Liam Girdwood
parent 87d79c48dd
commit b3420a5b1b
1 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,20 @@
#define dma_chan_irq(dma, chan) dma_irq(dma)
#define dma_chan_irq_name(dma, chan) dma_irq_name(dma)
/* SDMA2 specific data */
/* Interrupts must be set up interestingly -- shift them all by 32 like
* on the other platforms.
*
* We want interrupt 103 + 32. To properly get it from IRQ_STEER we have
* to divide this by 64 (gives result 2 and remainder 7) due to how the
* IRQ_STEER driver interacts with SOF.
*/
#define SDMA2_IRQ 7
#define SDMA2_IRQ_NAME "irqstr2"
#define SDMA_CORE_RATIO 1/* Enable ACR bit as it's needed for this platform */
#endif /* __PLATFORM_LIB_DMA_H__ */
#else