Commit 8255fff4 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Paul Mundt

sh: Add support DMA Engine to SH7722

Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent c373ba99
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <asm/clock.h> #include <asm/clock.h>
#include <asm/mmzone.h> #include <asm/mmzone.h>
#include <asm/dma-sh.h>
#include <cpu/sh7722.h> #include <cpu/sh7722.h>
static struct resource rtc_resources[] = { static struct resource rtc_resources[] = {
...@@ -373,6 +374,18 @@ static struct platform_device sci_device = { ...@@ -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 = { static struct platform_device *sh7722_devices[] __initdata = {
&cmt_device, &cmt_device,
&tmu0_device, &tmu0_device,
...@@ -385,6 +398,7 @@ static struct platform_device *sh7722_devices[] __initdata = { ...@@ -385,6 +398,7 @@ static struct platform_device *sh7722_devices[] __initdata = {
&vpu_device, &vpu_device,
&veu_device, &veu_device,
&jpu_device, &jpu_device,
&dma_device,
}; };
static int __init sh7722_devices_setup(void) static int __init sh7722_devices_setup(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment