diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-05-05 11:56:31 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-23 23:20:14 -0400 |
commit | fe78e68ab8508550403238a489d6ba62b8079a50 (patch) | |
tree | 8e03a0a434f2d3dbdf2fdd3d7193227f91e727a0 /arch/arm/mach-shmobile | |
parent | 5bcd75177bed1e36186ee681a31a7251b32d956b (diff) |
ARM: mach-shmobile: add DMA for MMCIF on mackerel
Add DMA mode support for the MMCIF controller on mackerel.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 4e70ac40f9c3..008bd7f7883f 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -803,6 +803,15 @@ static struct resource sh_mmcif_resources[] = { | |||
803 | }, | 803 | }, |
804 | }; | 804 | }; |
805 | 805 | ||
806 | static struct sh_mmcif_dma sh_mmcif_dma = { | ||
807 | .chan_priv_rx = { | ||
808 | .slave_id = SHDMA_SLAVE_MMCIF_RX, | ||
809 | }, | ||
810 | .chan_priv_tx = { | ||
811 | .slave_id = SHDMA_SLAVE_MMCIF_TX, | ||
812 | }, | ||
813 | }; | ||
814 | |||
806 | static struct sh_mmcif_plat_data sh_mmcif_plat = { | 815 | static struct sh_mmcif_plat_data sh_mmcif_plat = { |
807 | .sup_pclk = 0, | 816 | .sup_pclk = 0, |
808 | .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, | 817 | .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, |
@@ -810,6 +819,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { | |||
810 | MMC_CAP_8_BIT_DATA | | 819 | MMC_CAP_8_BIT_DATA | |
811 | MMC_CAP_NEEDS_POLL, | 820 | MMC_CAP_NEEDS_POLL, |
812 | .get_cd = slot_cn7_get_cd, | 821 | .get_cd = slot_cn7_get_cd, |
822 | .dma = &sh_mmcif_dma, | ||
813 | }; | 823 | }; |
814 | 824 | ||
815 | static struct platform_device sh_mmcif_device = { | 825 | static struct platform_device sh_mmcif_device = { |