diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-01-22 05:26:29 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-08 07:15:28 -0500 |
commit | 5928808ef623347e0d4aa22327b992e9e125b6ad (patch) | |
tree | 224237a53eaa3e75c093430f967d5f2bd255f1f4 /drivers/spi/Kconfig | |
parent | cd7bed00340475ee72a013a070e200e065085ef3 (diff) |
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>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r-- | drivers/spi/Kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index f1878666e917..8913d3dd5724 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
@@ -301,7 +301,12 @@ config SPI_PXA2XX_PXADMA | |||
301 | bool "PXA2xx SSP legacy PXA DMA API support" | 301 | bool "PXA2xx SSP legacy PXA DMA API support" |
302 | depends on SPI_PXA2XX && ARCH_PXA | 302 | depends on SPI_PXA2XX && ARCH_PXA |
303 | help | 303 | help |
304 | Enable PXA private legacy DMA API support. | 304 | Enable PXA private legacy DMA API support. Note that this is |
305 | deprecated in favor of generic DMA engine API. | ||
306 | |||
307 | config SPI_PXA2XX_DMA | ||
308 | def_bool y | ||
309 | depends on SPI_PXA2XX && !SPI_PXA2XX_PXADMA | ||
305 | 310 | ||
306 | config SPI_PXA2XX | 311 | config SPI_PXA2XX |
307 | tristate "PXA2xx SSP SPI master" | 312 | tristate "PXA2xx SSP SPI master" |