diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-05-19 18:34:36 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-22 16:51:19 +0900 |
commit | 9e526bc70ae0a82d345e86aa85ebdccff2fd15b6 (patch) | |
tree | d60ca2c310a26c08d72feec45686973a8b408534 /arch/sh/boards | |
parent | 470ef1a71891102d300ed741164eb3c8c10c9190 (diff) | |
download | op-kernel-dev-9e526bc70ae0a82d345e86aa85ebdccff2fd15b6.zip op-kernel-dev-9e526bc70ae0a82d345e86aa85ebdccff2fd15b6.tar.gz |
sh: Add SDHI DMA support to kfr2r09
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index b2cd0ed..95850aa 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c @@ -10,6 +10,7 @@ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/interrupt.h> +#include <linux/mfd/sh_mobile_sdhi.h> #include <linux/mtd/physmap.h> #include <linux/mtd/onenand.h> #include <linux/delay.h> @@ -356,10 +357,18 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = { }, }; +static struct sh_mobile_sdhi_info sh7724_sdhi0_data = { + .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, +}; + static struct platform_device kfr2r09_sh_sdhi0_device = { .name = "sh_mobile_sdhi", .num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources), .resource = kfr2r09_sh_sdhi0_resources, + .dev = { + .platform_data = &sh7724_sdhi0_data, + }, .archdata = { .hwblk_id = HWBLK_SDHI0, }, |