projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sh: Add support DMA Engine to SH7722
[linux-block.git]
/
arch
/
sh
/
kernel
/
cpu
/
sh4a
/
setup-sh7722.c
diff --git
a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
index 35097753456ce729243b0da61848386dbf7d6f1c..5491b094cf05eff5f9b506cffb47364217a149f1 100644
(file)
--- a/
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
+++ b/
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
@@
-17,6
+17,7
@@
#include <linux/sh_timer.h>
#include <asm/clock.h>
#include <asm/mmzone.h>
#include <linux/sh_timer.h>
#include <asm/clock.h>
#include <asm/mmzone.h>
+#include <asm/dma-sh.h>
#include <cpu/sh7722.h>
static struct resource rtc_resources[] = {
#include <cpu/sh7722.h>
static struct resource rtc_resources[] = {
@@
-373,6
+374,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,
&tmu0_device,
static struct platform_device *sh7722_devices[] __initdata = {
&cmt_device,
&tmu0_device,
@@
-385,6
+398,7
@@
static struct platform_device *sh7722_devices[] __initdata = {
&vpu_device,
&veu_device,
&jpu_device,
&vpu_device,
&veu_device,
&jpu_device,
+ &dma_device,
};
static int __init sh7722_devices_setup(void)
};
static int __init sh7722_devices_setup(void)