diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-05-19 14:34:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-22 03:51:18 -0400 |
commit | 470ef1a71891102d300ed741164eb3c8c10c9190 (patch) | |
tree | 062e6b207208fe3a2b8907f0d433a077654042c7 /arch/sh | |
parent | 815f1995f03112dec0767a6ab88cccf8cf198509 (diff) |
sh: Add SDHI DMA support to ms7724se
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index 60f0387a69d1..f9b82546c2df 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/device.h> | 14 | #include <linux/device.h> |
15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
17 | #include <linux/mtd/physmap.h> | 18 | #include <linux/mtd/physmap.h> |
18 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
19 | #include <linux/smc91x.h> | 20 | #include <linux/smc91x.h> |
@@ -462,11 +463,19 @@ static struct resource sdhi0_cn7_resources[] = { | |||
462 | }, | 463 | }, |
463 | }; | 464 | }; |
464 | 465 | ||
466 | static struct sh_mobile_sdhi_info sh7724_sdhi0_data = { | ||
467 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | ||
468 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | ||
469 | }; | ||
470 | |||
465 | static struct platform_device sdhi0_cn7_device = { | 471 | static struct platform_device sdhi0_cn7_device = { |
466 | .name = "sh_mobile_sdhi", | 472 | .name = "sh_mobile_sdhi", |
467 | .id = 0, | 473 | .id = 0, |
468 | .num_resources = ARRAY_SIZE(sdhi0_cn7_resources), | 474 | .num_resources = ARRAY_SIZE(sdhi0_cn7_resources), |
469 | .resource = sdhi0_cn7_resources, | 475 | .resource = sdhi0_cn7_resources, |
476 | .dev = { | ||
477 | .platform_data = &sh7724_sdhi0_data, | ||
478 | }, | ||
470 | .archdata = { | 479 | .archdata = { |
471 | .hwblk_id = HWBLK_SDHI0, | 480 | .hwblk_id = HWBLK_SDHI0, |
472 | }, | 481 | }, |
@@ -485,11 +494,19 @@ static struct resource sdhi1_cn8_resources[] = { | |||
485 | }, | 494 | }, |
486 | }; | 495 | }; |
487 | 496 | ||
497 | static struct sh_mobile_sdhi_info sh7724_sdhi1_data = { | ||
498 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, | ||
499 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, | ||
500 | }; | ||
501 | |||
488 | static struct platform_device sdhi1_cn8_device = { | 502 | static struct platform_device sdhi1_cn8_device = { |
489 | .name = "sh_mobile_sdhi", | 503 | .name = "sh_mobile_sdhi", |
490 | .id = 1, | 504 | .id = 1, |
491 | .num_resources = ARRAY_SIZE(sdhi1_cn8_resources), | 505 | .num_resources = ARRAY_SIZE(sdhi1_cn8_resources), |
492 | .resource = sdhi1_cn8_resources, | 506 | .resource = sdhi1_cn8_resources, |
507 | .dev = { | ||
508 | .platform_data = &sh7724_sdhi1_data, | ||
509 | }, | ||
493 | .archdata = { | 510 | .archdata = { |
494 | .hwblk_id = HWBLK_SDHI1, | 511 | .hwblk_id = HWBLK_SDHI1, |
495 | }, | 512 | }, |