sh: Add SDHI DMA support to migor
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 19 May 2010 18:34:39 +0000 (18:34 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 22 May 2010 07:51:19 +0000 (16:51 +0900)
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-migor/setup.c

index 7da0fc94a01efc34aecf31b4909e98f9532faf13..87185de2044698724cb50b66e3770eb1359b2bf6 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/interrupt.h>
 #include <linux/input.h>
 #include <linux/input/sh_keysc.h>
+#include <linux/mfd/sh_mobile_sdhi.h>
 #include <linux/mtd/physmap.h>
 #include <linux/mtd/nand.h>
 #include <linux/i2c.h>
@@ -402,10 +403,18 @@ static struct resource sdhi_cn9_resources[] = {
        },
 };
 
+static struct sh_mobile_sdhi_info sh7724_sdhi_data = {
+       .dma_slave_tx   = SHDMA_SLAVE_SDHI0_TX,
+       .dma_slave_rx   = SHDMA_SLAVE_SDHI0_RX,
+};
+
 static struct platform_device sdhi_cn9_device = {
        .name           = "sh_mobile_sdhi",
        .num_resources  = ARRAY_SIZE(sdhi_cn9_resources),
        .resource       = sdhi_cn9_resources,
+       .dev = {
+               .platform_data  = &sh7724_sdhi_data,
+       },
        .archdata = {
                .hwblk_id = HWBLK_SDHI,
        },