diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-11-24 05:05:26 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-25 02:26:50 -0500 |
commit | df73af86b6e737f357aae85e0b5e621516117780 (patch) | |
tree | 50bc4eab70879bd06ac83eadab4535091e8192cd /arch/arm/mach-shmobile | |
parent | a782d688e9c6f9ca9a7a9a28e8e2876969ddef53 (diff) |
ARM: mach-shmobile: enable MMCIF DMA on ap4evb
Have to add DMA slave configuration to enable DMA for the sh7372 MMCIF
controller.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index d3260542b943..9d96ad49b6b8 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -272,6 +272,15 @@ static struct resource sh_mmcif_resources[] = { | |||
272 | }, | 272 | }, |
273 | }; | 273 | }; |
274 | 274 | ||
275 | static struct sh_mmcif_dma sh_mmcif_dma = { | ||
276 | .chan_priv_rx = { | ||
277 | .slave_id = SHDMA_SLAVE_MMCIF_RX, | ||
278 | }, | ||
279 | .chan_priv_tx = { | ||
280 | .slave_id = SHDMA_SLAVE_MMCIF_TX, | ||
281 | }, | ||
282 | }; | ||
283 | |||
275 | static struct sh_mmcif_plat_data sh_mmcif_plat = { | 284 | static struct sh_mmcif_plat_data sh_mmcif_plat = { |
276 | .sup_pclk = 0, | 285 | .sup_pclk = 0, |
277 | .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, | 286 | .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, |
@@ -279,6 +288,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { | |||
279 | MMC_CAP_8_BIT_DATA | | 288 | MMC_CAP_8_BIT_DATA | |
280 | MMC_CAP_NEEDS_POLL, | 289 | MMC_CAP_NEEDS_POLL, |
281 | .get_cd = slot_cn7_get_cd, | 290 | .get_cd = slot_cn7_get_cd, |
291 | .dma = &sh_mmcif_dma, | ||
282 | }; | 292 | }; |
283 | 293 | ||
284 | static struct platform_device sh_mmcif_device = { | 294 | static struct platform_device sh_mmcif_device = { |