summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx/dma-s3c2443.c
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2012-04-24 18:06:53 -0700
committerKukjin Kim <kgene.kim@samsung.com>2012-04-24 18:06:53 -0700
commitad6c1d43964dcba57bfe20b7185af5a71f94a1b7 (patch)
tree109dbb0480440eed903f3dfa0d0ba13e8284f1df /arch/arm/mach-s3c24xx/dma-s3c2443.c
parentd25a8f940c477dc8ed5893d7366a63dba53b0b19 (diff)
downloadtalos-op-linux-ad6c1d43964dcba57bfe20b7185af5a71f94a1b7.tar.gz
talos-op-linux-ad6c1d43964dcba57bfe20b7185af5a71f94a1b7.zip
ARM: S3C24XX: claim spi channels for hsspi in dma-s3c2443
SoCs starting with the S3C2443 contain SPI controllers compatible with the spi-s3c64xx driver and therefore need separate dma channels for rx and tx. This patch introduces dma channel declarations for these and changes the dma-s3c2443.c accordingly. None of the older SoCs use the spi-dma at all. Most boards bitbang their spi use and the spi-s3c24xx driver also does not use the dma system. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx/dma-s3c2443.c')
-rw-r--r--arch/arm/mach-s3c24xx/dma-s3c2443.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c24xx/dma-s3c2443.c b/arch/arm/mach-s3c24xx/dma-s3c2443.c
index e227c472a40a..2d94228d2866 100644
--- a/arch/arm/mach-s3c24xx/dma-s3c2443.c
+++ b/arch/arm/mach-s3c24xx/dma-s3c2443.c
@@ -55,12 +55,20 @@ static struct s3c24xx_dma_map __initdata s3c2443_dma_mappings[] = {
.name = "sdi",
.channels = MAP(S3C2443_DMAREQSEL_SDI),
},
- [DMACH_SPI0] = {
- .name = "spi0",
+ [DMACH_SPI0_RX] = {
+ .name = "spi0-rx",
+ .channels = MAP(S3C2443_DMAREQSEL_SPI0RX),
+ },
+ [DMACH_SPI0_TX] = {
+ .name = "spi0-tx",
.channels = MAP(S3C2443_DMAREQSEL_SPI0TX),
},
- [DMACH_SPI1] = { /* only on S3C2443/S3C2450 */
- .name = "spi1",
+ [DMACH_SPI1_RX] = { /* only on S3C2443/S3C2450 */
+ .name = "spi1-rx",
+ .channels = MAP(S3C2443_DMAREQSEL_SPI1RX),
+ },
+ [DMACH_SPI1_TX] = { /* only on S3C2443/S3C2450 */
+ .name = "spi1-tx",
.channels = MAP(S3C2443_DMAREQSEL_SPI1TX),
},
[DMACH_UART0] = {
OpenPOWER on IntegriCloud