1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 00:04:05 +02:00

[ar71xx] ethernet driver preparation for gigabit support

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13340 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2008-11-24 16:56:36 +00:00
parent 5ffeef3276
commit 70342a708e
3 changed files with 7 additions and 8 deletions

View File

@ -37,7 +37,7 @@
#define ETH_FCS_LEN 4 #define ETH_FCS_LEN 4
#define AG71XX_DRV_NAME "ag71xx" #define AG71XX_DRV_NAME "ag71xx"
#define AG71XX_DRV_VERSION "0.4.3" #define AG71XX_DRV_VERSION "0.4.4"
#define AG71XX_NAPI_TX 1 #define AG71XX_NAPI_TX 1

View File

@ -255,13 +255,10 @@ int ag71xx_phy_connect(struct ag71xx *ag)
} }
/* mask with MAC supported features */ /* mask with MAC supported features */
phydev->supported &= (SUPPORTED_10baseT_Half if (pdata->has_gbit)
| SUPPORTED_10baseT_Full phydev->supported &= PHY_GBIT_FEATURES;
| SUPPORTED_100baseT_Half else
| SUPPORTED_100baseT_Full phydev->supported &= PHY_BASIC_FEATURES;
| SUPPORTED_Autoneg
| SUPPORTED_MII
| SUPPORTED_TP);
phydev->advertising = phydev->supported; phydev->advertising = phydev->supported;

View File

@ -28,6 +28,8 @@ struct ag71xx_platform_data {
u32 flush_reg; u32 flush_reg;
u32 mii_if; u32 mii_if;
u8 mac_addr[ETH_ALEN]; u8 mac_addr[ETH_ALEN];
u8 has_gbit:1;
}; };
struct ag71xx_mdio_platform_data { struct ag71xx_mdio_platform_data {