Skip to contentSkip to conversation

ARM: s3c64xx: DMA: Use S3C64XX_SDMA_SEL register name instead of numeric address.

PATCH New Tomasz Figa 1 participant 1 message Jul 28, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/5 ARM: s3c64xx: DMA: Use S3C64XX_SDMA_SEL register name instead of numeric address.

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.

---
 arch/arm/mach-s3c64xx/dma.c                   |    2 +-
 arch/arm/mach-s3c64xx/include/mach/regs-sys.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-s3c64xx/dma.c +1 -1
index 204bfaf..0849f2d 100644
@@ -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);
arch/arm/mach-s3c64xx/include/mach/regs-sys.h +2 -0
index 69b78d9..774e0de 100644
@@ -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)
Signature · 1 line
1.7.6