spi/pxa2xx: break out the private DMA API usage into a separate file
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 22 Jan 2013 10:26:28 +0000 (12:26 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Feb 2013 12:15:21 +0000 (12:15 +0000)
commitcd7bed00340475ee72a013a070e200e065085ef3
tree98f3cd20ecfaf090a772d0c0b185df7260a8336e
parentd560040f7d6fbe0a2990b8f6edca1815e19e72f5
spi/pxa2xx: break out the private DMA API usage into a separate file

The PXA SPI driver uses PXA platform specific private DMA implementation
which does not work on non-PXA platforms. In order to use this driver on
other platforms we break out the private DMA implementation into a separate
file that gets compiled only when CONFIG_SPI_PXA2XX_PXADMA is set. The DMA
functions are stubbed out if there is no DMA implementation selected (i.e
we are building on non-PXA platform).

While we are there we can kill the dummy DMA bits in pxa2xx_spi.h as they
are not needed anymore for CE4100.

Once this is done we can add the generic DMA engine support to the driver
that allows usage of any DMA controller that implements DMA engine API.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Lu Cao <lucao@marvell.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-pxa2xx-pxadma.c [new file with mode: 0644]
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h [new file with mode: 0644]
include/linux/spi/pxa2xx_spi.h