sh: Add support DMA Engine to SH7780
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Thu, 12 Mar 2009 07:31:45 +0000 (07:31 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 25 Sep 2009 03:19:33 +0000 (12:19 +0900)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4a/setup-sh7780.c

index 2c901f4..12ff56f 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/io.h>
 #include <linux/serial_sci.h>
 #include <linux/sh_timer.h>
+#include <asm/dma-sh.h>
 
 static struct sh_timer_config tmu0_platform_data = {
        .name = "TMU0",
@@ -240,6 +241,18 @@ static struct platform_device sci_device = {
        },
 };
 
+static struct sh_dmae_pdata dma_platform_data = {
+       .mode = (SHDMA_MIX_IRQ | SHDMA_DMAOR1),
+};
+
+static struct platform_device dma_device = {
+       .name           = "sh-dma-engine",
+       .id             = -1,
+       .dev            = {
+               .platform_data  = &dma_platform_data,
+       },
+};
+
 static struct platform_device *sh7780_devices[] __initdata = {
        &tmu0_device,
        &tmu1_device,
@@ -249,6 +262,7 @@ static struct platform_device *sh7780_devices[] __initdata = {
        &tmu5_device,
        &rtc_device,
        &sci_device,
+       &dma_device,
 };
 
 static int __init sh7780_devices_setup(void)