From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] dmaengine: Add Freescale i.MX1/21/27 DMA driver
Date: Tue, 5 Oct 2010 12:06:49 +0200 [thread overview]
Message-ID: <20101005100649.GL28242@pengutronix.de> (raw)
In-Reply-To: <AANLkTikaAuBe=ef3vnt_xV0At4ZQbNsD4rFqtLF4R+0+@mail.gmail.com>
Hi Javier,
On Tue, Oct 05, 2010 at 09:45:10AM +0200, javier Martin wrote:
> Hi Sascha,
>
>
> +
> > +struct imxdma_channel {
> > + struct imxdma_engine *imxdma;
> > + unsigned int channel;
> > + unsigned int imxdma_channel;
> > +
> > + enum dma_data_direction direction;
> > + enum dma_slave_buswidth word_size;
> > + dma_addr_t bd_phys;
> > + unsigned long flags;
> > + dma_addr_t per_address;
> > + u32 watermark_level;
> > + struct dma_chan chan;
> > + spinlock_t lock;
> > + struct dma_async_tx_descriptor desc;
> > + dma_cookie_t last_completed;
> > + enum dma_status status;
> > + int dma_request;
> > + struct scatterlist *sg_list;
> > +};
> > +
> > +#define MAX_DMA_CHANNELS 8
> >
>
> i.MX27 has 16 DMA channels. Maybe an #ifdef would solve the issue.
This is by intention. I want to reserve 8 channels for the old driver
and the remaining 8 for the dmaengine driver. This way we can have both
in the tree and use both drivers parallel. This can be changed to the
real value once the old driver is gone.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2010-10-05 10:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 13:56 dmaengine patches Sascha Hauer
2010-09-30 13:56 ` [PATCH 1/4] dmaengine: add possibility for cyclic transfers Sascha Hauer
2010-09-30 13:56 ` [PATCH 2/4] dmaengine: add wrapper functions for device control functions Sascha Hauer
2010-09-30 13:56 ` [PATCH 3/4] dmaengine: Add Freescale i.MX SDMA support Sascha Hauer
2010-10-08 0:14 ` Dan Williams
2010-09-30 13:56 ` [PATCH 4/4] dmaengine: Add Freescale i.MX1/21/27 DMA driver Sascha Hauer
2010-10-05 7:45 ` javier Martin
2010-10-05 10:06 ` Sascha Hauer [this message]
2010-10-05 15:20 ` Linus Walleij
2010-10-05 23:16 ` Dan Williams
2010-10-06 8:24 ` Sascha Hauer
2010-10-06 8:25 ` [PATCH 4/4 v2] " Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101005100649.GL28242@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).