devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dma: imx-sdma: Add a new DMATYPE for SAI
@ 2014-10-24 19:37 Nicolin Chen
  2014-10-26  0:19 ` Shawn Guo
       [not found] ` <1414179461-3522-1-git-send-email-nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolin Chen @ 2014-10-24 19:37 UTC (permalink / raw)
  To: vinod.koul
  Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak,
	dan.j.williams, s.hauer, shawn.guo, devicetree, linux-kernel,
	dmaengine, b38343

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

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 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(+)

diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
index 4659fd9..dc8d3aa 100644
--- a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
+++ b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
@@ -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.
 
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 88afc48..05fd6b1 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -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;
diff --git a/include/linux/platform_data/dma-imx.h b/include/linux/platform_data/dma-imx.h
index 6a1357d..7d964e7 100644
--- a/include/linux/platform_data/dma-imx.h
+++ b/include/linux/platform_data/dma-imx.h
@@ -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 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dma: imx-sdma: Add a new DMATYPE for SAI
  2014-10-24 19:37 [PATCH] dma: imx-sdma: Add a new DMATYPE for SAI Nicolin Chen
@ 2014-10-26  0:19 ` Shawn Guo
       [not found] ` <1414179461-3522-1-git-send-email-nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2014-10-26  0:19 UTC (permalink / raw)
  To: Nicolin Chen
  Cc: vinod.koul, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
	galak, dan.j.williams, s.hauer, devicetree, linux-kernel,
	dmaengine, b38343

On Fri, Oct 24, 2014 at 12:37:41PM -0700, Nicolin Chen wrote:
> This patch simply adds a new DMATYPE for SAI which's included
> in i.MX6 Solo X.
> 
> Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>

Acked-by: Shawn Guo <shawn.guo@linaro.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dma: imx-sdma: Add a new DMATYPE for SAI
       [not found] ` <1414179461-3522-1-git-send-email-nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-11-12 11:15   ` Vinod Koul
  0 siblings, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2014-11-12 11:15 UTC (permalink / raw)
  To: Nicolin Chen
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ,
	dan.j.williams-ral2JQCrhuEAvxtiuMwx3w,
	s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ, shawn.guo-QSEj5FYQhm4dnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA, b38343-KZfg59tc24xl57MIdRCFDg

On Fri, Oct 24, 2014 at 12:37:41PM -0700, Nicolin Chen wrote:
> 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.

-- 
~Vinod

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-12 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 19:37 [PATCH] dma: imx-sdma: Add a new DMATYPE for SAI Nicolin Chen
2014-10-26  0:19 ` Shawn Guo
     [not found] ` <1414179461-3522-1-git-send-email-nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-12 11:15   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).