All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-shmobile: Enable DMAEngine for MMCIF on AG5EVM
@ 2011-05-24 10:40 Magnus Damm
  2011-05-24 10:42 ` [PATCH] ARM: mach-shmobile: Enable DMAEngine for SDHI " Magnus Damm
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2011-05-24 10:40 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Simply add MMCIF slave ids for RX and TX to enable
DMA Engine support for the AG5EVM board.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Has a build time dependency on the patch:
 "[PATCH] ARM: mach-shmobile: sh73a0 DMA Engine support for SY-DMAC"

 arch/arm/mach-shmobile/board-ag5evm.c |    9 +++++++++
 1 file changed, 9 insertions(+)

--- 0009/arch/arm/mach-shmobile/board-ag5evm.c
+++ work/arch/arm/mach-shmobile/board-ag5evm.c	2011-05-24 17:48:42.000000000 +0900
@@ -158,10 +158,19 @@ static struct resource sh_mmcif_resource
 	},
 };
 
+static struct sh_mmcif_dma sh_mmcif_dma = {
+	.chan_priv_rx	= {
+		.slave_id	= SHDMA_SLAVE_MMCIF_RX,
+	},
+	.chan_priv_tx	= {
+		.slave_id	= SHDMA_SLAVE_MMCIF_TX,
+	},
+};
 static struct sh_mmcif_plat_data sh_mmcif_platdata = {
 	.sup_pclk	= 0,
 	.ocr		= MMC_VDD_165_195,
 	.caps		= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
+	.dma		= &sh_mmcif_dma,
 };
 
 static struct platform_device mmc_device = {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-24 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 10:40 [PATCH] ARM: mach-shmobile: Enable DMAEngine for MMCIF on AG5EVM Magnus Damm
2011-05-24 10:42 ` [PATCH] ARM: mach-shmobile: Enable DMAEngine for SDHI " Magnus Damm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.