* [PATCH]: sh: dmaengine support for SH7785
@ 2009-12-17 3:15 Nobuhiro Iwamatsu
2009-12-17 5:16 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2009-12-17 3:15 UTC (permalink / raw)
To: linux-sh
Add dmaengine platform device to SH7785.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
---
arch/sh/kernel/cpu/sh4a/setup-sh7785.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
index ef26ebd..f685b9b 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
@@ -14,6 +14,7 @@
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/sh_timer.h>
+#include <asm/dma-sh.h>
#include <asm/mmzone.h>
static struct plat_sci_port scif0_platform_data = {
@@ -294,6 +295,18 @@ static struct platform_device tmu5_device = {
.num_resources = ARRAY_SIZE(tmu5_resources),
};
+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 *sh7785_devices[] __initdata = {
&scif0_device,
&scif1_device,
@@ -307,6 +320,7 @@ static struct platform_device *sh7785_devices[]
__initdata = {
&tmu3_device,
&tmu4_device,
&tmu5_device,
+ &dma_device,
};
static int __init sh7785_devices_setup(void)
--
1.6.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH]: sh: dmaengine support for SH7785
2009-12-17 3:15 [PATCH]: sh: dmaengine support for SH7785 Nobuhiro Iwamatsu
@ 2009-12-17 5:16 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2009-12-17 5:16 UTC (permalink / raw)
To: linux-sh
On Thu, Dec 17, 2009 at 12:15:57PM +0900, Nobuhiro Iwamatsu wrote:
> Add dmaengine platform device to SH7785.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-17 5:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 3:15 [PATCH]: sh: dmaengine support for SH7785 Nobuhiro Iwamatsu
2009-12-17 5:16 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).