aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>2009-03-12 03:31:45 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-09-24 23:19:33 -0400
commitecb6fd529942c143c8837dfb11262009c77e9c77 (patch)
treee4fbabd72cd84f59500bdc33d47596215a81be5d /arch
parent8255fff45b2a9b53f8bf39147157ddaf9c72a585 (diff)
sh: Add support DMA Engine to SH7780
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7780.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
index 2c901f446959..12ff56f19c5c 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
@@ -13,6 +13,7 @@
13#include <linux/io.h> 13#include <linux/io.h>
14#include <linux/serial_sci.h> 14#include <linux/serial_sci.h>
15#include <linux/sh_timer.h> 15#include <linux/sh_timer.h>
16#include <asm/dma-sh.h>
16 17
17static struct sh_timer_config tmu0_platform_data = { 18static struct sh_timer_config tmu0_platform_data = {
18 .name = "TMU0", 19 .name = "TMU0",
@@ -240,6 +241,18 @@ static struct platform_device sci_device = {
240 }, 241 },
241}; 242};
242 243
244static struct sh_dmae_pdata dma_platform_data = {
245 .mode = (SHDMA_MIX_IRQ | SHDMA_DMAOR1),
246};
247
248static struct platform_device dma_device = {
249 .name = "sh-dma-engine",
250 .id = -1,
251 .dev = {
252 .platform_data = &dma_platform_data,
253 },
254};
255
243static struct platform_device *sh7780_devices[] __initdata = { 256static struct platform_device *sh7780_devices[] __initdata = {
244 &tmu0_device, 257 &tmu0_device,
245 &tmu1_device, 258 &tmu1_device,
@@ -249,6 +262,7 @@ static struct platform_device *sh7780_devices[] __initdata = {
249 &tmu5_device, 262 &tmu5_device,
250 &rtc_device, 263 &rtc_device,
251 &sci_device, 264 &sci_device,
265 &dma_device,
252}; 266};
253 267
254static int __init sh7780_devices_setup(void) 268static int __init sh7780_devices_setup(void)