summaryrefslogtreecommitdiff
path: root/target/linux
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
commit8179904540542eae92e18253d8fa0b9113e16ee0 (patch)
treeb3433433de6dd102201c9a1e36484273e48c8c43 /target/linux
parente6d307ab4bd7a21495d3d6ab84c3092f17efa063 (diff)
downloadmtk-20170518-8179904540542eae92e18253d8fa0b9113e16ee0.zip
mtk-20170518-8179904540542eae92e18253d8fa0b9113e16ee0.tar.gz
mtk-20170518-8179904540542eae92e18253d8fa0b9113e16ee0.tar.bz2
shared DMA zone is twice smaller on 6338
SVN-Revision: 16608
Diffstat (limited to 'target/linux')
-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 c6e472e..aeb1b93 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)