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)
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>

No differences found