All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: Add support DMA Engine to SH7722
@ 2009-03-12  7:31 Nobuhiro Iwamatsu
  2009-03-12  7:31 ` [PATCH] sh: Add support DMA Engine to SH7780 Nobuhiro Iwamatsu
  0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2009-03-12  7:31 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
---
 arch/sh/kernel/cpu/sh4a/setup-sh7722.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
index 0e5d204..c0949ae 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
@@ -16,6 +16,7 @@
 #include <linux/sh_cmt.h>
 #include <asm/clock.h>
 #include <asm/mmzone.h>
+#include <asm/dma-sh.h>

 static struct resource rtc_resources[] = {
 	[0] = {
@@ -241,6 +242,18 @@ static struct platform_device sci_device = {
 	},
 };

+static struct sh_dmae_pdata dma_platform_data = {
+	.mode = 0,
+};
+
+static struct platform_device dma_device = {
+	.name       = "sh-dma-engine",
+	.id     = -1,
+	.dev        = {
+		.platform_data  = &dma_platform_data,
+	},
+};
+
 static struct platform_device *sh7722_devices[] __initdata = {
 	&cmt_device,
 	&rtc_device,
@@ -250,6 +263,7 @@ static struct platform_device *sh7722_devices[] __initdata = {
 	&vpu_device,
 	&veu_device,
 	&jpu_device,
+	&dma_device,
 };

 static int __init sh7722_devices_setup(void)
-- 
1.6.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] sh: Add support DMA Engine to SH7780
  2009-03-12  7:31 [PATCH] sh: Add support DMA Engine to SH7722 Nobuhiro Iwamatsu
@ 2009-03-12  7:31 ` Nobuhiro Iwamatsu
  0 siblings, 0 replies; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2009-03-12  7:31 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
---
 arch/sh/kernel/cpu/sh4a/setup-sh7780.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
index 6f7227c..272c3c3 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
@@ -12,6 +12,7 @@
 #include <linux/serial.h>
 #include <linux/io.h>
 #include <linux/serial_sci.h>
+#include <asm/dma-sh.h>

 static struct resource rtc_resources[] = {
 	[0] = {
@@ -57,9 +58,23 @@ 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 = {
 	&rtc_device,
 	&sci_device,
+	&dma_device,
 };

 static int __init sh7780_devices_setup(void)
-- 
1.6.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-12  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12  7:31 [PATCH] sh: Add support DMA Engine to SH7722 Nobuhiro Iwamatsu
2009-03-12  7:31 ` [PATCH] sh: Add support DMA Engine to SH7780 Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.