Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3825270imm; Sat, 21 Jul 2018 04:10:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd2p3nYCgb/7yzngBRDgWQztfZymu/P0ZS/uES2AHFUcdRr5djEWLUa38QunKr491SIhqIB X-Received: by 2002:a17:902:c4:: with SMTP id a62-v6mr5476834pla.344.1532171426064; Sat, 21 Jul 2018 04:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532171426; cv=none; d=google.com; s=arc-20160816; b=nt2FslWKtqUIP6aXowz7et2QSSY4va4lm4oeD9CK1PPs3aywAEqu0gZKGhJ3kL6gV7 5JWpQvXOwkCgluOMLao/LAD4yIiKurGSIpUhEeYs1ZcZakPErJLnRDzRGT7RskH4RBna 4dn4VoGtDz8QC75aGDgSpN9iq/Xo8Z9IfyhzHyAVW47lTmqProeWZFXb3Xbx9lmv0Omg UDsLkdX/5Ki9yBJrOAA+pG3qX35IzoUsj6jkEQ5uN5oNKT30U91oUkxuDCJHrQWeZ/oX wu7QZ0uCmOqsRGDkXzSJF8hK3ioiA4Zu3wAKsEqcsVa2eFn3qaNacl5RRhkL3mGeCBBc lkdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=zLKsHagq+hvwccv/2IRqvLXa2Cr/NuN5/dukRyrUy5M=; b=eaDGM380qMtKmbMQID/soVDmjJasP1BwoX6GvrveCFJA299N2uxc1MtuQlXHNaxbuM AuKLeRcZH4D8qbe25/IrrtCjfoslfl6kf933860qsX2jkllQesFzxgrmfnC+txPmt1SR +rVet6XV+Ky1mNjVZh3mOqM109G1DPY+/0xLC98Zg7iriGWrBfWvCdCyQh1h3EBnqLjB 73XGBpghllf2sbdBkyrr/D1PMO1kB0MlCOSY3UnHKSbyD2ppJRkyqXOrWHOu7SQIdy4N t+zVmWcD2Mj1EoX/7//yZr3yQu7xhJ7SJ6sfE98f7Cpyq/mqVMA7V2XBHuhvzGyaijYU TIWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=UGOWIgyO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v123-v6si4237919pfb.324.2018.07.21.04.10.11; Sat, 21 Jul 2018 04:10:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=UGOWIgyO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728267AbeGUMAK (ORCPT + 99 others); Sat, 21 Jul 2018 08:00:10 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:43548 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728170AbeGUMAJ (ORCPT ); Sat, 21 Jul 2018 08:00:09 -0400 From: Paul Cercueil To: Vinod Koul , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Zubair Lutfullah Kakakhel Cc: Mathieu Malaterre , Daniel Silsby , Paul Cercueil , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH v3 08/18] dmaengine: dma-jz4780: Add support for the JZ4740 SoC Date: Sat, 21 Jul 2018 13:06:33 +0200 Message-Id: <20180721110643.19624-9-paul@crapouillou.net> In-Reply-To: <20180721110643.19624-1-paul@crapouillou.net> References: <20180721110643.19624-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1532171267; bh=zLKsHagq+hvwccv/2IRqvLXa2Cr/NuN5/dukRyrUy5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=UGOWIgyOJo31Ff0HmoIBdmMSMPhpxP/Mh0f/NCtvrmEzZuLH75Ib9hDdmGnuXNmWW6NZU1uWcLkxxzN8VMqdOx6hPmi7hAMb+a4KnpdPxFrbD0milpLcIz/JJIa5P8sEILW4Q0iluUUgiKrTCedfVSj5QQ7YphqpG8ToTb0EWLI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The JZ4740 SoC has a single DMA core starring six DMA channels. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Reviewed-by: PrasannaKumar Muralidharan --- drivers/dma/dma-jz4780.c | 3 +++ 1 file changed, 3 insertions(+) v2: The documentation update is now in patch 01/17 v3: The Kconfig update was dropped thanks to patch 06/18 diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index a5f4a8d54516..084d4023637e 100644 --- a/drivers/dma/dma-jz4780.c +++ b/drivers/dma/dma-jz4780.c @@ -135,6 +135,7 @@ struct jz4780_dma_chan { }; enum jz_version { + ID_JZ4740, ID_JZ4770, ID_JZ4780, }; @@ -803,11 +804,13 @@ static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, } static const struct jz4780_dma_soc_data jz4780_dma_soc_data[] = { + [ID_JZ4740] = { .nb_channels = 6, .transfer_ord_max = 5, }, [ID_JZ4770] = { .nb_channels = 6, .transfer_ord_max = 6, }, [ID_JZ4780] = { .nb_channels = 32, .transfer_ord_max = 7, }, }; static const struct of_device_id jz4780_dma_dt_match[] = { + { .compatible = "ingenic,jz4740-dma", .data = (void *)ID_JZ4740 }, { .compatible = "ingenic,jz4770-dma", .data = (void *)ID_JZ4770 }, { .compatible = "ingenic,jz4780-dma", .data = (void *)ID_JZ4780 }, {}, -- 2.11.0