summaryrefslogtreecommitdiffstats
path: root/drivers/dma/imx-sdma.c
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-11-13 22:55:25 +0800
committerVinod Koul <vinod.koul@intel.com>2013-12-16 09:18:48 +0530
commit1a895578d4e50577bb6aa79bd194b502f09dd768 (patch)
tree9f8ae02613713c5242f35eb975e621e5b848be3f /drivers/dma/imx-sdma.c
parentcd72b8462a2ebbf9524e726c65c2770f0bf70d22 (diff)
downloadlinux-1a895578d4e50577bb6aa79bd194b502f09dd768.tar.gz
linux-1a895578d4e50577bb6aa79bd194b502f09dd768.tar.bz2
linux-1a895578d4e50577bb6aa79bd194b502f09dd768.zip
dma: imx-sdma: Add new dma type for ssi dual fifo script
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen <b42378@freescale.com> Acked-by: Kumar Gala <galak@codeaurora.org> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r--drivers/dma/imx-sdma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index f769c7383536..152247675feb 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -725,6 +725,10 @@ static void sdma_get_pc(struct sdma_channel *sdmac,
per_2_emi = sdma->script_addrs->app_2_mcu_addr;
emi_2_per = sdma->script_addrs->mcu_2_app_addr;
break;
+ case IMX_DMATYPE_SSI_DUAL:
+ per_2_emi = sdma->script_addrs->ssish_2_mcu_addr;
+ emi_2_per = sdma->script_addrs->mcu_2_ssish_addr;
+ break;
case IMX_DMATYPE_SSI_SP:
case IMX_DMATYPE_MMC:
case IMX_DMATYPE_SDHC: