]> err.no Git - linux-2.6/commitdiff
[ARM] 3799/1: S3C2442: DMA channel mappings
authorBen Dooks <ben-linux@fluff.org>
Fri, 15 Sep 2006 22:46:20 +0000 (23:46 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 25 Sep 2006 09:25:19 +0000 (10:25 +0100)
DMA channel mappings for the S3C2442

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-s3c2410/Kconfig
arch/arm/mach-s3c2410/Makefile
arch/arm/mach-s3c2410/s3c2410-dma.c

index bbd138be6a70779663bd4aa1798f629e4b81e007..61a359c4aa478fc4856c57b8a64a477ea5a4ac41 100644 (file)
@@ -133,6 +133,13 @@ config S3C2410_CLOCK
        help
          Clock code for the S3C2410, and similar processors
 
+config CPU_S3C2410_DMA
+       bool
+       depends on S3C2410_DMA && (CPU_S3C2410 || CPU_S3C2442)
+       default y if CPU_S3C2410 || CPU_S3C2442
+       help
+         DMA device selection for S3C2410 and compatible CPUs
+
 config CPU_S3C2410
        bool
        depends on ARCH_S3C2410
index 129e037c037de97dadc2dc6a01da911c1de825b5..a3509052f435cbdd4ed8d0f35d4f80cee7b9e267 100644 (file)
@@ -22,7 +22,7 @@ obj-$(CONFIG_CPU_S3C2400)     += s3c2400-gpio.o
 
 obj-$(CONFIG_CPU_S3C2410)      += s3c2410.o
 obj-$(CONFIG_CPU_S3C2410)      += s3c2410-gpio.o
-obj-dma-$(CONFIG_CPU_S3C2410)  += s3c2410-dma.o
+obj-$(CONFIG_CPU_S3C2410_DMA)  += s3c2410-dma.o
 
 # Power Management support
 
index 91bc169fc25eea82d862c039943a785da02a9570..51e5098b32e870c65dcec8fb120a1770c0547e18 100644 (file)
@@ -141,3 +141,18 @@ static int __init s3c2410_dma_init(void)
 }
 
 arch_initcall(s3c2410_dma_init);
+
+/* S3C2442 DMA contains the same selection table as the S3C2410 */
+
+static struct sysdev_driver s3c2442_dma_driver = {
+       .add    = s3c2410_dma_add,
+};
+
+static int __init s3c2442_dma_init(void)
+{
+       return sysdev_driver_register(&s3c2442_sysclass, &s3c2442_dma_driver);
+}
+
+arch_initcall(s3c2442_dma_init);
+
+