spi/dw_spi: add DMA support
authorFeng Tang <feng.tang@intel.com>
Fri, 24 Dec 2010 05:59:11 +0000 (13:59 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 24 Dec 2010 08:23:25 +0000 (01:23 -0700)
commit7063c0d942a1af2993531fbe52b4c74c1db818c4
treefe91b01bd61449849736c47e0a05840fc47a5eb3
parent79290a2aa2fd1c179a285218472092475630dc0e
spi/dw_spi: add DMA support

dw_spi driver in upstream only supports PIO mode, and this patch
will support it to cowork with the Designware dma controller used
on Intel Moorestown platform, at the same time it provides a general
framework to support dw_spi core to cowork with dma controllers on
other platforms

It has been tested with a Option GTM501L 3G modem and Infenion 60x60
modem. To use DMA mode, DMA controller 2 of Moorestown has to be enabled

Also change the dma interface suggested by Linus Walleij.

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
[Typo fix and renames to match intel_mid_dma renaming]
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/dw_spi.c
drivers/spi/dw_spi_mid.c [new file with mode: 0644]
drivers/spi/dw_spi_pci.c
include/linux/spi/dw_spi.h