Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-16 Thread Andy Gross
On Mon, Mar 16, 2015 at 08:15:26AM -, sricha...@codeaurora.org wrote: > Hi, > > > > > >> > >> > +static int adm_get_blksize(unsigned int burst) > >> > +{ > >> > +int ret; > >> > + > >> > +switch (burst) { > >> > +case 16: > >> > +ret = 0; > >> > +

Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-16 Thread sricharan
Hi, > >> >> > +static int adm_get_blksize(unsigned int burst) >> > +{ >> > + int ret; >> > + >> > + switch (burst) { >> > + case 16: >> > + ret = 0; >> > + break; >> > + case 32: >> > + ret = 1; >> > + break; >> > + case 64: >> > + ret = 2; >> > +

Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-13 Thread Andy Gross
On Fri, Mar 13, 2015 at 02:27:45PM +0530, Vinod Koul wrote: > On Wed, Feb 11, 2015 at 11:46:05PM -0600, Andy Gross wrote: > > +++ b/drivers/dma/qcom_adm.c > > @@ -0,0 +1,901 @@ > > +/* > > + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. > shouldn't this be 15 :) yeah, need

Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-13 Thread Vinod Koul
On Wed, Feb 11, 2015 at 11:46:05PM -0600, Andy Gross wrote: > +++ b/drivers/dma/qcom_adm.c > @@ -0,0 +1,901 @@ > +/* > + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. shouldn't this be 15 :) +/* ADM registers - calculated from channel number and security domain */ > +#defi

[Patch v4 2/2] dmaengine: Add ADM driver

2015-02-11 Thread Andy Gross
Add the DMA engine driver for the QCOM Application Data Mover (ADM) DMA controller found in the MSM8x60 and IPQ/APQ8064 platforms. The ADM supports both memory to memory transactions and memory to/from peripheral device transactions. The controller also provides flow control capabilities for tran