diff options
author | Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> | 2009-03-12 03:31:41 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-24 23:17:27 -0400 |
commit | 8255fff45b2a9b53f8bf39147157ddaf9c72a585 (patch) | |
tree | 391cd2c0c13b01323a049735931a0dac332b81e0 /arch | |
parent | c373ba999103fa794f041eab5bd490714d2dee88 (diff) |
sh: Add support DMA Engine to SH7722
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-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 35097753456c..5491b094cf05 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/sh_timer.h> | 17 | #include <linux/sh_timer.h> |
18 | #include <asm/clock.h> | 18 | #include <asm/clock.h> |
19 | #include <asm/mmzone.h> | 19 | #include <asm/mmzone.h> |
20 | #include <asm/dma-sh.h> | ||
20 | #include <cpu/sh7722.h> | 21 | #include <cpu/sh7722.h> |
21 | 22 | ||
22 | static struct resource rtc_resources[] = { | 23 | static struct resource rtc_resources[] = { |
@@ -373,6 +374,18 @@ static struct platform_device sci_device = { | |||
373 | }, | 374 | }, |
374 | }; | 375 | }; |
375 | 376 | ||
377 | static struct sh_dmae_pdata dma_platform_data = { | ||
378 | .mode = 0, | ||
379 | }; | ||
380 | |||
381 | static struct platform_device dma_device = { | ||
382 | .name = "sh-dma-engine", | ||
383 | .id = -1, | ||
384 | .dev = { | ||
385 | .platform_data = &dma_platform_data, | ||
386 | }, | ||
387 | }; | ||
388 | |||
376 | static struct platform_device *sh7722_devices[] __initdata = { | 389 | static struct platform_device *sh7722_devices[] __initdata = { |
377 | &cmt_device, | 390 | &cmt_device, |
378 | &tmu0_device, | 391 | &tmu0_device, |
@@ -385,6 +398,7 @@ static struct platform_device *sh7722_devices[] __initdata = { | |||
385 | &vpu_device, | 398 | &vpu_device, |
386 | &veu_device, | 399 | &veu_device, |
387 | &jpu_device, | 400 | &jpu_device, |
401 | &dma_device, | ||
388 | }; | 402 | }; |
389 | 403 | ||
390 | static int __init sh7722_devices_setup(void) | 404 | static int __init sh7722_devices_setup(void) |