aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files/arch/mips
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-28 20:06:44 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-28 20:06:44 +0000
commit73821328e6bd8b858ad8ddd84234311e10b08eb0 (patch)
tree888ee43517ff0cd529ffd9c8dabd4f04f4ffa038 /target/linux/brcm63xx/files/arch/mips
parent9f14950a67c158856a9d950eb6dd4128dfb291d5 (diff)
downloadmaster-187ad058-73821328e6bd8b858ad8ddd84234311e10b08eb0.tar.gz
master-187ad058-73821328e6bd8b858ad8ddd84234311e10b08eb0.tar.bz2
master-187ad058-73821328e6bd8b858ad8ddd84234311e10b08eb0.zip
[brcm63xx] shared DMA zone is twice smaller on 6338
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16608 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-enet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-enet.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-enet.c
index c6e472ebf0..aeb1b934f5 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-enet.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-enet.c
@@ -109,7 +109,10 @@ int __init bcm63xx_enet_register(int unit,
if (!shared_device_registered) {
shared_res[0].start = bcm63xx_regset_address(RSET_ENETDMA);
shared_res[0].end = shared_res[0].start;
- shared_res[0].end += RSET_ENETDMA_SIZE - 1;
+ if (BCMCPU_IS_6338())
+ shared_res[0].end += (RSET_ENETDMA_SIZE / 2) - 1;
+ else
+ shared_res[0].end += (RSET_ENETDMA_SIZE) - 1;
ret = platform_device_register(&bcm63xx_enet_shared_device);
if (ret)