Changeset 13340


Ignore:
Timestamp:
2008-11-24T17:56:36+01:00 (8 years ago)
Author:
juhosg
Message:

[ar71xx] ethernet driver preparation for gigabit support

Location:
trunk/target/linux/ar71xx/files
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r13201 r13340  
    3838 
    3939#define AG71XX_DRV_NAME         "ag71xx" 
    40 #define AG71XX_DRV_VERSION      "0.4.3" 
     40#define AG71XX_DRV_VERSION      "0.4.4" 
    4141 
    4242#define AG71XX_NAPI_TX          1 
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c

    r13201 r13340  
    256256 
    257257                /* mask with MAC supported features */ 
    258                 phydev->supported &= (SUPPORTED_10baseT_Half 
    259                         | SUPPORTED_10baseT_Full 
    260                         | SUPPORTED_100baseT_Half 
    261                         | SUPPORTED_100baseT_Full 
    262                         | SUPPORTED_Autoneg 
    263                         | SUPPORTED_MII 
    264                         | SUPPORTED_TP); 
     258                if (pdata->has_gbit) 
     259                        phydev->supported &= PHY_GBIT_FEATURES; 
     260                else 
     261                        phydev->supported &= PHY_BASIC_FEATURES; 
    265262 
    266263                phydev->advertising = phydev->supported; 
  • trunk/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h

    r12997 r13340  
    2929        u32             mii_if; 
    3030        u8              mac_addr[ETH_ALEN]; 
     31 
     32        u8              has_gbit:1; 
    3133}; 
    3234 
Note: See TracChangeset for help on using the changeset viewer.