Commit ecb6fd52 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Paul Mundt

sh: Add support DMA Engine to SH7780

Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8255fff4
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/serial_sci.h> #include <linux/serial_sci.h>
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <asm/dma-sh.h>
static struct sh_timer_config tmu0_platform_data = { static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
...@@ -240,6 +241,18 @@ static struct platform_device sci_device = { ...@@ -240,6 +241,18 @@ static struct platform_device sci_device = {
}, },
}; };
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 *sh7780_devices[] __initdata = { static struct platform_device *sh7780_devices[] __initdata = {
&tmu0_device, &tmu0_device,
&tmu1_device, &tmu1_device,
...@@ -249,6 +262,7 @@ static struct platform_device *sh7780_devices[] __initdata = { ...@@ -249,6 +262,7 @@ static struct platform_device *sh7780_devices[] __initdata = {
&tmu5_device, &tmu5_device,
&rtc_device, &rtc_device,
&sci_device, &sci_device,
&dma_device,
}; };
static int __init sh7780_devices_setup(void) static int __init sh7780_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