]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: add support for DMA engine
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 22 Jan 2013 10:26:29 +0000 (12:26 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Feb 2013 12:15:28 +0000 (12:15 +0000)
commitf99f9e792c479d65cfc372ec5edae03e9ec1e96b
tree224237a53eaa3e75c093430f967d5f2bd255f1f4
parent78c7e9b3c09bdc17fdc7f36f4d796aaa77f6d4b0
spi/pxa2xx: add support for DMA engine

To be able to use DMA with this driver on non-PXA platforms we implement
support for the generic DMA engine API. This lets user to use different DMA
engines with little or no modification to the driver.

Request lines and channel numbers can be passed to the driver from the
platform specific data.

The DMA engine implementation will be selected by default even on PXA
platform. User can select the legacy DMA API by enabling Kconfig option
CONFIG_SPI_PXA2XX_PXADMA.

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-dma.c [new file with mode: 0644]
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h
include/linux/spi/pxa2xx_spi.h