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 17 #include <linux/sh_timer.h> 18 18 #include <asm/clock.h> 19 19 #include <asm/mmzone.h> 20 + #include <asm/dma-sh.h> 20 21 #include <cpu/sh7722.h> 21 22 22 23 static struct resource rtc_resources[] = { ··· 374 373 }, 375 374 }; 376 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 + 377 388 static struct platform_device *sh7722_devices[] __initdata = { 378 389 &cmt_device, 379 390 &tmu0_device, ··· 398 385 &vpu_device, 399 386 &veu_device, 400 387 &jpu_device, 388 + &dma_device, 401 389 }; 402 390 403 391 static int __init sh7722_devices_setup(void)