Commit 470ef1a7 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Paul Mundt

sh: Add SDHI DMA support to ms7724se

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 815f1995
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mfd/sh_mobile_sdhi.h>
#include <linux/mtd/physmap.h> #include <linux/mtd/physmap.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/smc91x.h> #include <linux/smc91x.h>
...@@ -462,11 +463,19 @@ static struct resource sdhi0_cn7_resources[] = { ...@@ -462,11 +463,19 @@ static struct resource sdhi0_cn7_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 sdhi0_cn7_device = { static struct platform_device sdhi0_cn7_device = {
.name = "sh_mobile_sdhi", .name = "sh_mobile_sdhi",
.id = 0, .id = 0,
.num_resources = ARRAY_SIZE(sdhi0_cn7_resources), .num_resources = ARRAY_SIZE(sdhi0_cn7_resources),
.resource = sdhi0_cn7_resources, .resource = sdhi0_cn7_resources,
.dev = {
.platform_data = &sh7724_sdhi0_data,
},
.archdata = { .archdata = {
.hwblk_id = HWBLK_SDHI0, .hwblk_id = HWBLK_SDHI0,
}, },
...@@ -485,11 +494,19 @@ static struct resource sdhi1_cn8_resources[] = { ...@@ -485,11 +494,19 @@ static struct resource sdhi1_cn8_resources[] = {
}, },
}; };
static struct sh_mobile_sdhi_info sh7724_sdhi1_data = {
.dma_slave_tx = SHDMA_SLAVE_SDHI1_TX,
.dma_slave_rx = SHDMA_SLAVE_SDHI1_RX,
};
static struct platform_device sdhi1_cn8_device = { static struct platform_device sdhi1_cn8_device = {
.name = "sh_mobile_sdhi", .name = "sh_mobile_sdhi",
.id = 1, .id = 1,
.num_resources = ARRAY_SIZE(sdhi1_cn8_resources), .num_resources = ARRAY_SIZE(sdhi1_cn8_resources),
.resource = sdhi1_cn8_resources, .resource = sdhi1_cn8_resources,
.dev = {
.platform_data = &sh7724_sdhi1_data,
},
.archdata = { .archdata = {
.hwblk_id = HWBLK_SDHI1, .hwblk_id = HWBLK_SDHI1,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment