Author: jogo
Date: 2015-04-19 13:38:24 +0200 (Sun, 19 Apr 2015)
New Revision: 45504

Modified:
   
trunk/target/linux/brcm63xx/patches-3.18/339-MIPS-BCM63XX-add-support-for-BCM63268.patch
   
trunk/target/linux/brcm63xx/patches-3.18/341-MIPS-BCM63XX-add-support-for-BCM6318.patch
Log:
brcm63xx: allow using all four rgmii ports on bcm6316x

At least the third rgmii port is available on 63169, so assume all are
available. Simplifies cpu vs. variant handling.

Signed-off-by: Jonas Gorski <[email protected]>

Modified: 
trunk/target/linux/brcm63xx/patches-3.18/339-MIPS-BCM63XX-add-support-for-BCM63268.patch
===================================================================
--- 
trunk/target/linux/brcm63xx/patches-3.18/339-MIPS-BCM63XX-add-support-for-BCM63268.patch
    2015-04-19 09:50:49 UTC (rev 45503)
+++ 
trunk/target/linux/brcm63xx/patches-3.18/339-MIPS-BCM63XX-add-support-for-BCM63268.patch
    2015-04-19 11:38:24 UTC (rev 45504)
@@ -714,15 +714,11 @@
                return -ENODEV;
  
        ret = register_shared();
-@@ -295,8 +297,11 @@ bcm63xx_enetsw_register(const struct bcm
- 
-       if (BCMCPU_IS_6328())
+@@ -297,6 +299,8 @@ bcm63xx_enetsw_register(const struct bcm
                enetsw_pd.num_ports = ENETSW_PORTS_6328;
--      else if (BCMCPU_IS_6362() || BCMCPU_IS_6368())
-+      else if (BCMCPU_IS_6362() || BCMCPU_IS_6368() ||
-+               BCMCPU_VARIANT_IS_63168() || BCMCPU_VARIANT_IS_63169())
+       else if (BCMCPU_IS_6362() || BCMCPU_IS_6368())
                enetsw_pd.num_ports = ENETSW_PORTS_6368;
-+      else if (BCMCPU_VARIANT_IS_63268() ||  BCMCPU_VARIANT_IS_63269())
++      else if (BCMCPU_IS_63268())
 +              enetsw_pd.num_ports = ENETSW_PORTS_63268;
  
        enetsw_pd.dma_has_sram = true;

Modified: 
trunk/target/linux/brcm63xx/patches-3.18/341-MIPS-BCM63XX-add-support-for-BCM6318.patch
===================================================================
--- 
trunk/target/linux/brcm63xx/patches-3.18/341-MIPS-BCM63XX-add-support-for-BCM6318.patch
     2015-04-19 09:50:49 UTC (rev 45503)
+++ 
trunk/target/linux/brcm63xx/patches-3.18/341-MIPS-BCM63XX-add-support-for-BCM6318.patch
     2015-04-19 11:38:24 UTC (rev 45504)
@@ -648,8 +648,8 @@
 -      if (BCMCPU_IS_6328())
 +      if (BCMCPU_IS_6318() || BCMCPU_IS_6328())
                enetsw_pd.num_ports = ENETSW_PORTS_6328;
-       else if (BCMCPU_IS_6362() || BCMCPU_IS_6368() ||
-                BCMCPU_VARIANT_IS_63168() || BCMCPU_VARIANT_IS_63169())
+       else if (BCMCPU_IS_6362() || BCMCPU_IS_6368())
+               enetsw_pd.num_ports = ENETSW_PORTS_6368;
 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
 @@ -9,6 +9,8 @@ int __init bcm63xx_gpio_init(void);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to