aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7780.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
index 2c901f446959..12ff56f19c5c 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
@@ -13,6 +13,7 @@
13#include <linux/io.h> 13#include <linux/io.h>
14#include <linux/serial_sci.h> 14#include <linux/serial_sci.h>
15#include <linux/sh_timer.h> 15#include <linux/sh_timer.h>
16#include <asm/dma-sh.h>
16 17
17static struct sh_timer_config tmu0_platform_data = { 18static struct sh_timer_config tmu0_platform_data = {
18 .name = "TMU0", 19 .name = "TMU0",
@@ -240,6 +241,18 @@ static struct platform_device sci_device = {
240 }, 241 },
241}; 242};
242 243
244static struct sh_dmae_pdata dma_platform_data = {
245 .mode = (SHDMA_MIX_IRQ | SHDMA_DMAOR1),
246};
247
248static struct platform_device dma_device = {
249 .name = "sh-dma-engine",
250 .id = -1,
251 .dev = {
252 .platform_data = &dma_platform_data,
253 },
254};
255
243static struct platform_device *sh7780_devices[] __initdata = { 256static struct platform_device *sh7780_devices[] __initdata = {
244 &tmu0_device, 257 &tmu0_device,
245 &tmu1_device, 258 &tmu1_device,
@@ -249,6 +262,7 @@ static struct platform_device *sh7780_devices[] __initdata = {
249 &tmu5_device, 262 &tmu5_device,
250 &rtc_device, 263 &rtc_device,
251 &sci_device, 264 &sci_device,
265 &dma_device,
252}; 266};
253 267
254static int __init sh7780_devices_setup(void) 268static int __init sh7780_devices_setup(void)