From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753501AbaETMlJ (ORCPT ); Tue, 20 May 2014 08:41:09 -0400 Received: from yotta.elopez.com.ar ([31.220.24.173]:50290 "EHLO yotta.elopez.com.ar" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751062AbaETMlH (ORCPT ); Tue, 20 May 2014 08:41:07 -0400 Message-ID: <537B4D55.5040804@elopez.com.ar> Date: Tue, 20 May 2014 09:40:53 -0300 From: =?ISO-8859-1?Q?Emilio_L=F3pez?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Maxime Ripard CC: linux-sunxi@googlegroups.com, Dan Williams , Vinod Koul , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kevin.z.m.zh@gmail.com, sunny@allwinnertech.com, shuge@allwinnertech.com, zhuzhenhua@allwinnertech.com, andriy.shevchenko@intel.com, Arnd Bergmann Subject: Re: [linux-sunxi] [PATCH v7] DMA: sun6i: Add driver for the Allwinner A31 DMA controller References: <1398349364-10726-1-git-send-email-maxime.ripard@free-electrons.com> <1398349364-10726-2-git-send-email-maxime.ripard@free-electrons.com> In-Reply-To: <1398349364-10726-2-git-send-email-maxime.ripard@free-electrons.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, El 24/04/14 11:22, Maxime Ripard escribió: > The Allwinner A31 has a 16 channels DMA controller that it shares with the > newer A23. Although sharing some similarities with the DMA controller of the > older Allwinner SoCs, it's significantly different, I don't expect it to be > possible to share the driver for these two. > > The A31 Controller is able to memory-to-memory or memory-to-device transfers on > the 16 channels in parallel. > > Signed-off-by: Maxime Ripard > Acked-by: Arnd Bergmann > --- (snip) > diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig > index 5c5863842de9..360a10c71388 100644 > --- a/drivers/dma/Kconfig > +++ b/drivers/dma/Kconfig > @@ -361,6 +361,14 @@ config FSL_EDMA > multiplexing capability for DMA request sources(slot). > This module can be found on Freescale Vybrid and LS-1 SoCs. > > +config DMA_SUN6I > + tristate "Allwinner A31 SoCs DMA support" > + depends on ARCH_SUNXI > + select DMA_ENGINE > + select DMA_VIRTUAL_CHANNELS I think you also need to select DMA_OF here as you are using of_dma_controller_register > + help > + Support for the DMA engine for Allwinner A31 SoCs. > + > config DMA_ENGINE > bool Cheers, Emilio