Skip to contentSkip to conversation

dma: imx-sdma: Add a new DMATYPE for SAI

PATCH Applied Nicolin Chen 3 participants 3 messages Oct 24, 2014 – Nov 12, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma: imx-sdma: Add a new DMATYPE for SAI

This patch simply adds a new DMATYPE for SAI which's included in i.MX6 Solo X.

---
 Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 +
 drivers/dma/imx-sdma.c                                 | 1 +
 include/linux/platform_data/dma-imx.h                  | 1 +
 3 files changed, 3 insertions(+)
Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt +1 -0
index 4659fd9..dc8d3aa 100644
@@ -48,6 +48,7 @@ The full ID of peripheral types can be found below.
 	21	ESAI
 	22	SSI Dual FIFO	(needs firmware ver >= 2)
 	23	Shared ASRC
+	24	SAI
 
 The third cell specifies the transfer priority as below.
 
drivers/dma/imx-sdma.c +1 -0
index 88afc48..05fd6b1 100644
@@ -729,6 +729,7 @@ static void sdma_get_pc(struct sdma_channel *sdmac,
 	case IMX_DMATYPE_CSPI:
 	case IMX_DMATYPE_EXT:
 	case IMX_DMATYPE_SSI:
+	case IMX_DMATYPE_SAI:
 		per_2_emi = sdma->script_addrs->app_2_mcu_addr;
 		emi_2_per = sdma->script_addrs->mcu_2_app_addr;
 		break;
include/linux/platform_data/dma-imx.h +1 -0
index 6a1357d..7d964e7 100644
@@ -41,6 +41,7 @@ enum sdma_peripheral_type {
 	IMX_DMATYPE_ESAI,	/* ESAI */
 	IMX_DMATYPE_SSI_DUAL,	/* SSI Dual FIFO */
 	IMX_DMATYPE_ASRC_SP,	/* Shared ASRC */
+	IMX_DMATYPE_SAI,	/* SAI */
 };
 
 enum imx_dma_prio {
Signature · 1 line
1.9.1
Applied
#2 lore raw
In reply to Nicolin Chen
Quoted 2 lines · Nicolin Chen

This patch simply adds a new DMATYPE for SAI which's included in i.MX6 Solo X.

Applied, thanks.

Please snure you use the right subsystem name.

Signature · 1 line
~Vinod