diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-05-04 10:07:15 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-31 00:18:51 -0400 |
commit | 69bf6f451febe8dd07ccedf0ba3279c0f3f7fc3a (patch) | |
tree | b3ff66a5903c7ebc7a281d2870693aef8ec952fb /arch/arm/mach-shmobile/board-ap4evb.c | |
parent | d5b732b17ca2fc74f370bdba5aae6c804fac8c35 (diff) |
ARM: add DMA support to sh7372, enable DMA for SDHI
This adds DMA support for the sh7372 sh-mobile ARM core, using the shdma
dmaengine driver, and uses DMA for the SDHI SD-card controller on this SoC.
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/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 353ff8d120b1..5c41b958e022 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/irq.h> | 24 | #include <linux/irq.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
27 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
27 | #include <linux/mtd/mtd.h> | 28 | #include <linux/mtd/mtd.h> |
28 | #include <linux/mtd/partitions.h> | 29 | #include <linux/mtd/partitions.h> |
29 | #include <linux/mtd/physmap.h> | 30 | #include <linux/mtd/physmap.h> |
@@ -231,6 +232,11 @@ static struct platform_device keysc_device = { | |||
231 | }; | 232 | }; |
232 | 233 | ||
233 | /* SDHI0 */ | 234 | /* SDHI0 */ |
235 | static struct sh_mobile_sdhi_info sdhi0_info = { | ||
236 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | ||
237 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | ||
238 | }; | ||
239 | |||
234 | static struct resource sdhi0_resources[] = { | 240 | static struct resource sdhi0_resources[] = { |
235 | [0] = { | 241 | [0] = { |
236 | .name = "SDHI0", | 242 | .name = "SDHI0", |
@@ -249,6 +255,9 @@ static struct platform_device sdhi0_device = { | |||
249 | .num_resources = ARRAY_SIZE(sdhi0_resources), | 255 | .num_resources = ARRAY_SIZE(sdhi0_resources), |
250 | .resource = sdhi0_resources, | 256 | .resource = sdhi0_resources, |
251 | .id = 0, | 257 | .id = 0, |
258 | .dev = { | ||
259 | .platform_data = &sdhi0_info, | ||
260 | }, | ||
252 | }; | 261 | }; |
253 | 262 | ||
254 | /* USB1 */ | 263 | /* USB1 */ |