mirror of https://github.com/thesofproject/sof.git
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:
parent
87d79c48dd
commit
b3420a5b1b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue