Skip to content

Commit 5928808

Browse files
westeribroonie
authored andcommitted
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 <[email protected]> Acked-by: Linus Walleij <[email protected]> Tested-by: Lu Cao <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent cd7bed0 commit 5928808

File tree

6 files changed

+437
-3
lines changed

6 files changed

+437
-3
lines changed

drivers/spi/Kconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,12 @@ config SPI_PXA2XX_PXADMA
301301
bool "PXA2xx SSP legacy PXA DMA API support"
302302
depends on SPI_PXA2XX && ARCH_PXA
303303
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
305310

306311
config SPI_PXA2XX
307312
tristate "PXA2xx SSP SPI master"

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ obj-$(CONFIG_SPI_PL022) += spi-pl022.o
4949
obj-$(CONFIG_SPI_PPC4xx) += spi-ppc4xx.o
5050
spi-pxa2xx-platform-objs := spi-pxa2xx.o
5151
spi-pxa2xx-platform-$(CONFIG_SPI_PXA2XX_PXADMA) += spi-pxa2xx-pxadma.o
52+
spi-pxa2xx-platform-$(CONFIG_SPI_PXA2XX_DMA) += spi-pxa2xx-dma.o
5253
obj-$(CONFIG_SPI_PXA2XX) += spi-pxa2xx-platform.o
5354
obj-$(CONFIG_SPI_PXA2XX_PCI) += spi-pxa2xx-pci.o
5455
obj-$(CONFIG_SPI_RSPI) += spi-rspi.o

0 commit comments

Comments
 (0)