]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: S3C64XX: Use S3C64XX_SDMA_SEL register name instead of numeric address
authorTomasz Figa <tomasz.figa@gmail.com>
Tue, 23 Aug 2011 02:33:08 +0000 (11:33 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 19 Sep 2011 07:37:55 +0000 (16:37 +0900)
This patch adds a definition of S3C64XX_SDMA_SEL register and modifies
the s3c64xx DMA driver to use it instead of a magic register address.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c64xx/dma.c
arch/arm/mach-s3c64xx/include/mach/regs-sys.h

index 204bfafe4bfc214677e60fedbef98e4f43a5dd93..0849f2d3b1054e4a1ad1b1d3426376dcb513b313 100644 (file)
@@ -740,7 +740,7 @@ static int __init s3c64xx_dma_init(void)
        }
 
        /* Set all DMA configuration to be DMA, not SDMA */
-       writel(0xffffff, S3C_SYSREG(0x110));
+       writel(0xffffff, S3C64XX_SDMA_SEL);
 
        /* Register standard DMA controllers */
        s3c64xx_dma_init1(0, DMACH_UART0, IRQ_DMA0, 0x75000000);
index 69b78d9f83b8f2b4f04b72d85cf3e5562fa10c9a..774e0de31400506148a460a58dda99fc63de8a69 100644 (file)
@@ -21,6 +21,8 @@
 #define S3C64XX_AHB_CON1       S3C_SYSREG(0x104)
 #define S3C64XX_AHB_CON2       S3C_SYSREG(0x108)
 
+#define S3C64XX_SDMA_SEL       S3C_SYSREG(0x110)
+
 #define S3C64XX_OTHERS         S3C_SYSREG(0x900)
 
 #define S3C64XX_OTHERS_USBMASK (1 << 16)