From patchwork Wed Jan 23 15:23:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 10777383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 44D2113B4 for ; Wed, 23 Jan 2019 15:24:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 289B22CEE6 for ; Wed, 23 Jan 2019 15:24:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A7E62CF11; Wed, 23 Jan 2019 15:24:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F2462CEF2 for ; Wed, 23 Jan 2019 15:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=CkAAeemcC0xqdjKbB5boH0qs4CyCKZ6/M3p1U9CE9uw=; b=hhB+g5iqFBhGLOZVdvDUJZqn5z 3VuhSlR0gkwYMdW3NI5m7M9lB9fKjRO6hpx3xDFO/qAv7sUimxmGd8PmHUohAcICWVAYmltdfSfIX 92vt7BxrXMBT+dvUG/w0YIZiaT/3p8RhzqJCQiAQ1E8y9mKINamFzsHOaFQ8H2yQx9QTd5gAW5fLR LYddcTYL085Mc2Fg9Zy95I8a9qyhU1MNYQ5u+7KQhfzuNUzEtD06arKqTU25GmV801/1hIVlSmZJ/ Yv/Q6FKAG4PqHv1hzI/kQAdrTG+axkXSkAoFGjjJJjat9NayF7FLiFZSasOr6TScWvRrR4C4CTcMb dCqIcA2Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmKNm-0000NY-IQ; Wed, 23 Jan 2019 15:24:02 +0000 Received: from node.akkea.ca ([192.155.83.177]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmKNV-00005R-SB for linux-arm-kernel@lists.infradead.org; Wed, 23 Jan 2019 15:23:47 +0000 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 2764C4E2056; Wed, 23 Jan 2019 15:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1548257025; bh=1xeUcCzKj703eF+idvkBDtHWwPyULAgyOWkr9n8bJBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZBsMGmuImkpgITvRqsihDP62Q2paORliZ8PyCHttKFfEyacxteoq+dRFvoLfUyb7p Hop6DMXr9WKvQXu8Pox/X91YZ9bsAGgtKVyPgwI1i7zRfLF315MuRMvCuyWEnHcDrz hiZTXBHRFtzCOsrPm+Fh8CdiXDjZDtlkQhgrliyQ= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82-5KZzozEEK; Wed, 23 Jan 2019 15:23:44 +0000 (UTC) Received: from localhost.localdomain (198-48-167-13.cpe.pppoe.ca [198.48.167.13]) by node.akkea.ca (Postfix) with ESMTPSA id 3A3EC4E204B; Wed, 23 Jan 2019 15:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1548257024; bh=1xeUcCzKj703eF+idvkBDtHWwPyULAgyOWkr9n8bJBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=w4KvwTp5L8D9OjPn5934Zbkzn/FJRaaz0ebrjzwm14tyi0PpxHKJcvesmhfbCuPoF Vz5LesfouCYBFyF+hq9yHfGrlTi22cbNfk5nnW0Eyulp1PeUdchckGpvSAS0B2OLHt gjayXPrHl4pEL23Oh1vD5EfbRmfh4sDbQ/a4efJI= From: "Angus Ainslie (Purism)" To: angus@akkea.ca Subject: [PATCH v3 2/5] dma: imx-sdma: add imx8mq sdma compatible parts Date: Wed, 23 Jan 2019 08:23:07 -0700 Message-Id: <20190123152310.11680-3-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190123152310.11680-1-angus@akkea.ca> References: <20190120023150.17138-1-angus@akkea.ca> <20190123152310.11680-1-angus@akkea.ca> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190123_072346_016712_57C72E17 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Baluta , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Vinod Koul , NXP Linux Team , Pengutronix Kernel Team , angus.ainslie@puri.sm, linux-arm-kernel@lists.infradead.org, Lucas Stach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is identical to the imx7d data structures but we need to be able to differentiate that the imx8mq has 2 sdma controllers. Signed-off-by: Angus Ainslie (Purism) --- drivers/dma/imx-sdma.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 531a9d8b032a..2e691b1cd0eb 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -556,6 +556,12 @@ static struct sdma_driver_data sdma_imx7d = { .script_addrs = &sdma_script_imx7d, }; +static struct sdma_driver_data sdma_imx8mq = { + .chnenbl0 = SDMA_CHNENBL0_IMX35, + .num_events = 48, + .script_addrs = &sdma_script_imx7d, +}; + static const struct platform_device_id sdma_devtypes[] = { { .name = "imx25-sdma", @@ -578,6 +584,9 @@ static const struct platform_device_id sdma_devtypes[] = { }, { .name = "imx7d-sdma", .driver_data = (unsigned long)&sdma_imx7d, + }, { + .name = "imx8mq-sdma", + .driver_data = (unsigned long)&sdma_imx8mq, }, { /* sentinel */ } @@ -592,6 +601,7 @@ static const struct of_device_id sdma_dt_ids[] = { { .compatible = "fsl,imx31-sdma", .data = &sdma_imx31, }, { .compatible = "fsl,imx25-sdma", .data = &sdma_imx25, }, { .compatible = "fsl,imx7d-sdma", .data = &sdma_imx7d, }, + { .compatible = "fsl,imx8mq-sdma", .data = &sdma_imx8mq, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sdma_dt_ids);