diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-04-11 22:42:03 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 13:54:58 +0100 |
commit | 788437273fa8b824810ea9a23f7ed4d7fdb2949a (patch) | |
tree | 79ba33292f981697274cf29534e07617fa196fc2 /include/linux/platform_data/spi-s3c64xx.h | |
parent | 6b8cc3306e78490bda26815b04c786d8e1fc1489 (diff) | |
download | blackbird-op-linux-788437273fa8b824810ea9a23f7ed4d7fdb2949a.tar.gz blackbird-op-linux-788437273fa8b824810ea9a23f7ed4d7fdb2949a.zip |
spi: s3c64xx: move to generic dmaengine API
The spi-s3c64xx uses a Samsung proprietary interface for
talking to the DMA engine, which does not work with
multiplatform kernels.
This version of the patch leaves the old code in place,
behind an #ifdef. This can be removed in the future,
after the s3c64xx platform start supporting the regular
dmaengine interface. An earlier version of this patch was
tested successfully on exynos5250 by Padma Venkat.
The conversion was rather mechanical, since the samsung
interface is just a shallow wrapper around the dmaengine
interface.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/platform_data/spi-s3c64xx.h')
-rw-r--r-- | include/linux/platform_data/spi-s3c64xx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-s3c64xx.h b/include/linux/platform_data/spi-s3c64xx.h index ceba18d23a5a..8447f634c7f5 100644 --- a/include/linux/platform_data/spi-s3c64xx.h +++ b/include/linux/platform_data/spi-s3c64xx.h @@ -11,6 +11,8 @@ #ifndef __S3C64XX_PLAT_SPI_H #define __S3C64XX_PLAT_SPI_H +#include <linux/dmaengine.h> + struct platform_device; /** @@ -38,6 +40,7 @@ struct s3c64xx_spi_info { int src_clk_nr; int num_cs; int (*cfg_gpio)(void); + dma_filter_fn filter; }; /** |