linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhou Yanjie <zhouyanjie@zoho.com>
To: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org,
	devicetree@vger.kernel.org, robh+dt@kernel.org,
	paul.burton@mips.com, vkoul@kernel.org, paul@crapouillou.net,
	mark.rutland@arm.com, Zubair.Kakakhel@imgtec.com,
	dan.j.williams@intel.com
Subject: [PATCH 2/2 v2] dmaengine: JZ4780: Add support for the X1000.
Date: Fri, 25 Oct 2019 01:21:10 +0800	[thread overview]
Message-ID: <1571937670-30828-3-git-send-email-zhouyanjie@zoho.com> (raw)
In-Reply-To: <1571937670-30828-1-git-send-email-zhouyanjie@zoho.com>

Add support for probing the dma-jz4780 driver on the X1000 Soc.

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
---
 drivers/dma/dma-jz4780.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
index cafb1cc0..5e3af48 100644
--- a/drivers/dma/dma-jz4780.c
+++ b/drivers/dma/dma-jz4780.c
@@ -1019,11 +1019,18 @@ static const struct jz4780_dma_soc_data jz4780_dma_soc_data = {
 	.flags = JZ_SOC_DATA_ALLOW_LEGACY_DT | JZ_SOC_DATA_PROGRAMMABLE_DMA,
 };
 
+static const struct jz4780_dma_soc_data x1000_dma_soc_data = {
+	.nb_channels = 8,
+	.transfer_ord_max = 7,
+	.flags = JZ_SOC_DATA_PROGRAMMABLE_DMA,
+};
+
 static const struct of_device_id jz4780_dma_dt_match[] = {
 	{ .compatible = "ingenic,jz4740-dma", .data = &jz4740_dma_soc_data },
 	{ .compatible = "ingenic,jz4725b-dma", .data = &jz4725b_dma_soc_data },
 	{ .compatible = "ingenic,jz4770-dma", .data = &jz4770_dma_soc_data },
 	{ .compatible = "ingenic,jz4780-dma", .data = &jz4780_dma_soc_data },
+	{ .compatible = "ingenic,x1000-dma", .data = &x1000_dma_soc_data },
 	{},
 };
 MODULE_DEVICE_TABLE(of, jz4780_dma_dt_match);
-- 
2.7.4



  parent reply	other threads:[~2019-10-24 17:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23  3:05 DMA: JZ4780: Add DMA driver for X1000 Zhou Yanjie
2019-10-23  3:05 ` [PATCH 1/2] dt-bindings: DMA: Add X1000 bindings Zhou Yanjie
2019-10-23  3:05 ` [PATCH 2/2] DMA: JZ4780: Add support for the X1000 Zhou Yanjie
2019-10-23  5:15 ` DMA: JZ4780: Add DMA driver for X1000 Vinod Koul
2019-10-23  7:05   ` Zhou Yanjie
2019-10-23  7:02 ` dmaengine: JZ4780: Add dmaengine " Zhou Yanjie
2019-10-23  7:02   ` [PATCH RESEND 1/2] dt-bindings: dmaengine: Add X1000 bindings Zhou Yanjie
2019-10-23  7:02   ` [PATCH RESEND 2/2] dmaengine: JZ4780: Add support for the X1000 Zhou Yanjie
2019-10-23 16:08     ` Paul Cercueil
2019-10-24  8:32       ` Zhou Yanjie
2019-10-24 17:21 ` dmaengine: JZ4780: Add support for the X1000 v2 Zhou Yanjie
2019-10-24 17:21   ` [PATCH 1/2 v2] dt-bindings: dmaengine: Add X1000 bindings Zhou Yanjie
2019-10-29 21:35     ` Rob Herring
2019-10-24 17:21   ` Zhou Yanjie [this message]
2019-11-06 17:11   ` dmaengine: JZ4780: Add support for the X1000 v2 Vinod Koul
2019-11-08 18:51     ` Zhou Yanjie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1571937670-30828-3-git-send-email-zhouyanjie@zoho.com \
    --to=zhouyanjie@zoho.com \
    --cc=Zubair.Kakakhel@imgtec.com \
    --cc=dan.j.williams@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=paul.burton@mips.com \
    --cc=paul@crapouillou.net \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    --subject='Re: [PATCH 2/2 v2] dmaengine: JZ4780: Add support for the X1000.' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).