From patchwork Tue Jun 12 16:34:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 10460623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CBD5C60348 for ; Tue, 12 Jun 2018 16:34:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDCEA284AA for ; Tue, 12 Jun 2018 16:34:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1A77285C8; Tue, 12 Jun 2018 16:34:51 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BC0E284AA for ; Tue, 12 Jun 2018 16:34:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934717AbeFLQeu (ORCPT ); Tue, 12 Jun 2018 12:34:50 -0400 Received: from ec2-18-194-220-216.eu-central-1.compute.amazonaws.com ([18.194.220.216]:41448 "EHLO sysam.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933640AbeFLQet (ORCPT ); Tue, 12 Jun 2018 12:34:49 -0400 Received: from localhost (localhost [127.0.0.1]) by sysam.it (Postfix) with ESMTP id 3278521A0C; Tue, 12 Jun 2018 16:34:48 +0000 (UTC) Received: from sysam.it ([127.0.0.1]) by localhost (sysam.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wUx6xTuKAhxI; Tue, 12 Jun 2018 16:34:47 +0000 (UTC) Received: from jerusalem (host209-239-dynamic.20-79-r.retail.telecomitalia.it [79.20.239.209]) by sysam.it (Postfix) with ESMTPSA id 6E2D021A0B; Tue, 12 Jun 2018 16:34:47 +0000 (UTC) Date: Tue, 12 Jun 2018 18:34:46 +0200 From: Angelo Dureghello To: dmaengine@vger.kernel.org, vkoul@kernel.org Cc: linux-m68k@vger.kernel.org Subject: [PATCH v3 1/4] dmaengine: fsl-edma: add config and makefile changes for mcf-edma Message-ID: <20180612163446.GA12021@jerusalem> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.5 (2018-04-13) Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds Kconfig and makefile changes to add ColdFire mcf5441x family edma support. A new fsl-edma-common module has been added, to collect common code to fsl-edma. Signed-off-by: Angelo Dureghello --- Changes for v2: - patch splitted into 4 - add fsl-edma-common Changes for v3: - remove Kconfig FSL_EDMA_COMMON and set fsl-edma-common.o as additional object entry where needed. --- drivers/dma/Kconfig | 13 +++++++++++++ drivers/dma/Makefile | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 6d61cd023633..c7d45e69f021 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -220,6 +220,7 @@ config FSL_EDMA depends on OF select DMA_ENGINE select DMA_VIRTUAL_CHANNELS + select FSL_EDMA_COMMON help Support the Freescale eDMA engine with programmable channel multiplexing capability for DMA request sources(slot). @@ -327,6 +328,18 @@ config LPC18XX_DMAMUX Enable support for DMA on NXP LPC18xx/43xx platforms with PL080 and multiplexed DMA request lines. +config MCF_EDMA + tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs" + depends on M5441x + select DMA_ENGINE + select DMA_VIRTUAL_CHANNELS + select FSL_EDMA_COMMON + help + Support the Freescale ColdFire eDMA engine, 64-channel + implementation that performs complex data transfers with + minimal intervention from a host processor. + This module can be found on Freescale ColdFire mcf5441x SoCs. + config MMP_PDMA bool "MMP PDMA support" depends on ARCH_MMP || ARCH_PXA || COMPILE_TEST diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile index 0f62a4d49aab..cce5e3400580 100644 --- a/drivers/dma/Makefile +++ b/drivers/dma/Makefile @@ -32,7 +32,8 @@ obj-$(CONFIG_DW_AXI_DMAC) += dw-axi-dmac/ obj-$(CONFIG_DW_DMAC_CORE) += dw/ obj-$(CONFIG_EP93XX_DMA) += ep93xx_dma.o obj-$(CONFIG_FSL_DMA) += fsldma.o -obj-$(CONFIG_FSL_EDMA) += fsl-edma.o +obj-$(CONFIG_FSL_EDMA) += fsl-edma.o fsl-edma-common.o +obj-$(CONFIG_MCF_EDMA) += mcf-edma.o fsl-edma-common.o obj-$(CONFIG_FSL_RAID) += fsl_raid.o obj-$(CONFIG_HSU_DMA) += hsu/ obj-$(CONFIG_IMG_MDC_DMA) += img-mdc-dma.o