aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorEugene Konev <ejka@openwrt.org>2007-09-14 04:49:47 +0000
committerEugene Konev <ejka@openwrt.org>2007-09-14 04:49:47 +0000
commitc9df4095328ccd471e4d226b26deffd95f39c31d (patch)
treef41e22d51677d95c4c73e6682c279a3144399343 /target
parent084c153873dbe7d5f37454393fb0007084bbf992 (diff)
downloadupstream-c9df4095328ccd471e4d226b26deffd95f39c31d.tar.gz
upstream-c9df4095328ccd471e4d226b26deffd95f39c31d.tar.bz2
upstream-c9df4095328ccd471e4d226b26deffd95f39c31d.zip
add *dma_mask's to cpmacs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8773 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/platform.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c
index cbbe773cd7..6c7744c6bc 100644
--- a/target/linux/ar7/files/arch/mips/ar7/platform.c
+++ b/target/linux/ar7/files/arch/mips/ar7/platform.c
@@ -214,10 +214,15 @@ static struct platform_device physmap_flash = {
.num_resources = 1,
};
+static u64 cpmac_dma_mask = DMA_32BIT_MASK;
static struct platform_device cpmac_low = {
.id = 0,
.name = "cpmac",
- .dev.platform_data = &cpmac_low_data,
+ .dev = {
+ .dma_mask = &cpmac_dma_mask;
+ .coherent_dma_mask = DMA_32BIT_MASK;
+ .platform_data = &cpmac_low_data,
+ },
.resource = cpmac_low_res,
.num_resources = ARRAY_SIZE(cpmac_low_res),
};
@@ -225,7 +230,11 @@ static struct platform_device cpmac_low = {
static struct platform_device cpmac_high = {
.id = 1,
.name = "cpmac",
- .dev.platform_data = &cpmac_high_data,
+ .dev = {
+ .dma_mask = &cpmac_dma_mask;
+ .coherent_dma_mask = DMA_32BIT_MASK;
+ .platform_data = &cpmac_high_data,
+ },
.resource = cpmac_high_res,
.num_resources = ARRAY_SIZE(cpmac_high_res),
};