diff options
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7785.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c index ef26ebda6e8b..f685b9b21999 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
16 | #include <linux/sh_timer.h> | 16 | #include <linux/sh_timer.h> |
17 | #include <asm/dma-sh.h> | ||
17 | #include <asm/mmzone.h> | 18 | #include <asm/mmzone.h> |
18 | 19 | ||
19 | static struct plat_sci_port scif0_platform_data = { | 20 | static struct plat_sci_port scif0_platform_data = { |
@@ -294,6 +295,18 @@ static struct platform_device tmu5_device = { | |||
294 | .num_resources = ARRAY_SIZE(tmu5_resources), | 295 | .num_resources = ARRAY_SIZE(tmu5_resources), |
295 | }; | 296 | }; |
296 | 297 | ||
298 | static struct sh_dmae_pdata dma_platform_data = { | ||
299 | .mode = (SHDMA_MIX_IRQ | SHDMA_DMAOR1), | ||
300 | }; | ||
301 | |||
302 | static struct platform_device dma_device = { | ||
303 | .name = "sh-dma-engine", | ||
304 | .id = -1, | ||
305 | .dev = { | ||
306 | .platform_data = &dma_platform_data, | ||
307 | }, | ||
308 | }; | ||
309 | |||
297 | static struct platform_device *sh7785_devices[] __initdata = { | 310 | static struct platform_device *sh7785_devices[] __initdata = { |
298 | &scif0_device, | 311 | &scif0_device, |
299 | &scif1_device, | 312 | &scif1_device, |
@@ -307,6 +320,7 @@ static struct platform_device *sh7785_devices[] __initdata = { | |||
307 | &tmu3_device, | 320 | &tmu3_device, |
308 | &tmu4_device, | 321 | &tmu4_device, |
309 | &tmu5_device, | 322 | &tmu5_device, |
323 | &dma_device, | ||
310 | }; | 324 | }; |
311 | 325 | ||
312 | static int __init sh7785_devices_setup(void) | 326 | static int __init sh7785_devices_setup(void) |