sh: Add support DMA Engine to SH7722

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by Nobuhiro Iwamatsu and committed by Paul Mundt 8255fff4 c373ba99

+14
+14
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
··· 17 #include <linux/sh_timer.h> 18 #include <asm/clock.h> 19 #include <asm/mmzone.h> 20 #include <cpu/sh7722.h> 21 22 static struct resource rtc_resources[] = { ··· 374 }, 375 }; 376 377 static struct platform_device *sh7722_devices[] __initdata = { 378 &cmt_device, 379 &tmu0_device, ··· 398 &vpu_device, 399 &veu_device, 400 &jpu_device, 401 }; 402 403 static int __init sh7722_devices_setup(void)
··· 17 #include <linux/sh_timer.h> 18 #include <asm/clock.h> 19 #include <asm/mmzone.h> 20 + #include <asm/dma-sh.h> 21 #include <cpu/sh7722.h> 22 23 static struct resource rtc_resources[] = { ··· 373 }, 374 }; 375 376 + static struct sh_dmae_pdata dma_platform_data = { 377 + .mode = 0, 378 + }; 379 + 380 + static struct platform_device dma_device = { 381 + .name = "sh-dma-engine", 382 + .id = -1, 383 + .dev = { 384 + .platform_data = &dma_platform_data, 385 + }, 386 + }; 387 + 388 static struct platform_device *sh7722_devices[] __initdata = { 389 &cmt_device, 390 &tmu0_device, ··· 385 &vpu_device, 386 &veu_device, 387 &jpu_device, 388 + &dma_device, 389 }; 390 391 static int __init sh7722_devices_setup(void)