Changeset 36979


Ignore:
Timestamp:
2013-06-20T20:47:36+02:00 (5 years ago)
Author:
florian
Message:

brcm63xx: reduce the number of Ethernet DMA channels from 16 to 8

We currently used 16 DMA Ethernet channels, but the hardware only
supports up to 8 (with 2 per enet and the remaining for USB slave).

Signed-off-by: Florian Fainelli <florian@…>

Location:
trunk/target/linux/brcm63xx/patches-3.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/patches-3.9/407-bcm63xx_enet-add-support-for-bcm6368-internal-ethern.patch

    r36660 r36979  
    7575+               chan_count = 32; 
    7676+       else 
    77 +               chan_count = 16; 
     77+               chan_count = 8; 
    7878+ 
    7979+       shared_res[1].start = bcm63xx_regset_address(RSET_ENETDMAC); 
  • trunk/target/linux/brcm63xx/patches-3.9/419-MIPS-BCM63XX-enable-enet-for-BCM6345.patch

    r36946 r36979  
    6060        { 
    6161                .start          = -1, /* filled at runtime */ 
    62 @@ -137,12 +171,19 @@ static int __init register_shared(void) 
     62@@ -137,9 +171,14 @@ static int __init register_shared(void) 
    6363        if (shared_device_registered) 
    6464                return 0; 
     
    7676        if (BCMCPU_IS_6328() || BCMCPU_IS_6362() || BCMCPU_IS_6368()) 
    7777                chan_count = 32; 
    78 +       else if (BCMCPU_IS_6345()) 
    79 +               chan_count = 8; 
    80         else 
    81                 chan_count = 16; 
    82   
    83 @@ -172,7 +213,7 @@ int __init bcm63xx_enet_register(int uni 
     78@@ -172,7 +211,7 @@ int __init bcm63xx_enet_register(int uni 
    8479        if (unit > 1) 
    8580                return -ENODEV; 
     
    9085  
    9186        ret = register_shared(); 
    92 @@ -213,6 +254,20 @@ int __init bcm63xx_enet_register(int uni 
     87@@ -213,6 +252,20 @@ int __init bcm63xx_enet_register(int uni 
    9388                dpd->phy_interrupt = bcm63xx_get_irq_number(IRQ_ENET_PHY); 
    9489        } 
     
    111106        if (ret) 
    112107                return ret; 
    113 @@ -246,6 +301,10 @@ bcm63xx_enetsw_register(const struct bcm 
     108@@ -246,6 +299,10 @@ bcm63xx_enetsw_register(const struct bcm 
    114109        else if (BCMCPU_IS_6362() || BCMCPU_IS_6368()) 
    115110                enetsw_pd.num_ports = ENETSW_PORTS_6368; 
  • trunk/target/linux/brcm63xx/patches-3.9/426-hcs_mac_addr_pool.patch

    r36957 r36979  
    11--- a/arch/mips/bcm63xx/nvram.c 
    22+++ b/arch/mips/bcm63xx/nvram.c 
    3 @@ -52,6 +52,7 @@ void __init bcm63xx_nvram_init(void *add 
     3@@ -45,6 +45,7 @@ void __init bcm63xx_nvram_init(void *add 
    44 { 
    55        unsigned int check_len; 
     
    99        /* extract nvram data */ 
    1010        memcpy(&nvram, addr, sizeof(nvram)); 
    11 @@ -73,6 +74,15 @@ void __init bcm63xx_nvram_init(void *add 
     11@@ -65,6 +66,15 @@ void __init bcm63xx_nvram_init(void *add 
    1212        if (crc != expected_crc) 
    1313                pr_warn("nvram checksum failed, contents may be invalid (expected %08x, got %08x)\n", 
  • trunk/target/linux/brcm63xx/patches-3.9/800-wl_exports.patch

    r36660 r36979  
    1515 { 
    1616        unsigned int check_len; 
    17 @@ -48,6 +55,7 @@ void __init bcm63xx_nvram_init(void *add 
     17@@ -49,6 +56,7 @@ void __init bcm63xx_nvram_init(void *add 
    1818  
    1919        /* extract nvram data */ 
Note: See TracChangeset for help on using the changeset viewer.