dmaengine: shdma: Make second memory window optional
authorMagnus Damm <damm@opensource.se>
Tue, 24 May 2011 10:31:12 +0000 (10:31 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 25 May 2011 02:35:23 +0000 (11:35 +0900)
commit26fc02ab5551349b2e593829a76cb44328ee7f61
tree3ad395f8942e2e2ad869f508434e3738ad28bf45
parent66ad12931d523e833516659eafcc29af9a08fff3
dmaengine: shdma: Make second memory window optional

This patch makes the shdma.c driver allow slave operation
on DMA hardware mapped with a single I/O-memory window.

The dmae_set_dmars() function is adjusted to use the
first memory window in case of a missing DMARS window.

At probe() time the code is updated to enable DMA_SLAVE
only if slave information is passed with the platform data.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/dma/shdma.c
This page took 0.023971 seconds and 5 git commands to generate.