[brcm63xx] add missing patch which fakes a cardbus controller on top of PCI, thanks...
[openwrt.git] / target / linux / brcm63xx / files / arch / mips / bcm63xx / dev-enet.c
index c6e472e..aeb1b93 100644 (file)
@@ -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)
This page took 0.02243 seconds and 4 git commands to generate.