summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-09-14 04:49:47 +0000
committerEugene Konev <ejka@imfi.kspu.ru>2007-09-14 04:49:47 +0000
commit438d168a980c69067af282d7c612d528cbc65b5d (patch)
tree50107030d2b85164422a923e3806afdefa72bae1 /target/linux/ar7/files
parentfbd19377fa60739f3ad68b7cf67e4df601926b8c (diff)
downloadmtk-20170518-438d168a980c69067af282d7c612d528cbc65b5d.zip
mtk-20170518-438d168a980c69067af282d7c612d528cbc65b5d.tar.gz
mtk-20170518-438d168a980c69067af282d7c612d528cbc65b5d.tar.bz2
add *dma_mask's to cpmacs
SVN-Revision: 8773
Diffstat (limited to 'target/linux/ar7/files')
-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 cbbe773..6c7744c 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),
};