ARM: SAMSUNG: Add common DMA operations
commitc4e1662550a3bd23df7cff4611eff67ba2afe078
authorBoojin Kim <boojin.kim@samsung.com>
Fri, 2 Sep 2011 00:44:35 +0000 (2 09:44 +0900)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Sep 2011 05:40:02 +0000 (14 11:10 +0530)
treee4feab2846a663b7054a4783171c4c3043037bd7
parentaa0de00e4b9b3adba5db5ef5ee01e61b1b2e4329
ARM: SAMSUNG: Add common DMA operations

This patch adds common DMA operations which are used for Samsung DMA
drivers. Currently there are two types of DMA driver for Samsung SoCs.
The one is S3C-DMA for S3C SoCs and the other is PL330-DMA for S5P SoCs.
This patch provides funcion pointers for common DMA operations to DMA
client driver like SPI and Audio. It makes DMA client drivers support
multi-platform.
In addition, this common DMA operations implement the shared actions
that are needed for DMA client driver. For example shared actions are
filter() function for dma_request_channel() and parameter passing for
device_prep_slave_sg().

Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
arch/arm/mach-s3c2410/include/mach/dma.h
arch/arm/mach-s3c64xx/include/mach/dma.h
arch/arm/plat-samsung/Makefile
arch/arm/plat-samsung/dma-ops.c [new file with mode: 0644]
arch/arm/plat-samsung/include/plat/dma-ops.h [new file with mode: 0644]
arch/arm/plat-samsung/include/plat/dma-pl330.h
arch/arm/plat-samsung/include/plat/dma.h
arch/arm/plat-samsung/s3c-dma-ops.c [new file with mode: 0644]