@@ -12,6 +12,7 @@
#include <linux/serial.h>
#include <linux/io.h>
#include <linux/serial_sci.h>
+#include <asm/dma-sh.h>
static struct resource rtc_resources[] = {
[0] = {
@@ -57,9 +58,23 @@ 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 = {
&rtc_device,
&sci_device,
+ &dma_device,
};
static int __init sh7780_devices_setup(void)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> --- arch/sh/kernel/cpu/sh4a/setup-sh7780.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)