projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ffeef3
)
[ar71xx] ethernet driver preparation for gigabit support
author
juhosg
<juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 24 Nov 2008 16:56:36 +0000
(16:56 +0000)
committer
juhosg
<juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 24 Nov 2008 16:56:36 +0000
(16:56 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13340
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
patch
|
blob
|
history
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
patch
|
blob
|
history
target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index
3e15e33
..
f786552
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@
-37,7
+37,7
@@
#define ETH_FCS_LEN 4
#define AG71XX_DRV_NAME "ag71xx"
-#define AG71XX_DRV_VERSION "0.4.
3
"
+#define AG71XX_DRV_VERSION "0.4.
4
"
#define AG71XX_NAPI_TX 1
diff --git
a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
index
7242868
..
8728c7c
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
+++ b/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
@@
-255,13
+255,10
@@
int ag71xx_phy_connect(struct ag71xx *ag)
}
/* mask with MAC supported features */
- phydev->supported &= (SUPPORTED_10baseT_Half
- | SUPPORTED_10baseT_Full
- | SUPPORTED_100baseT_Half
- | SUPPORTED_100baseT_Full
- | SUPPORTED_Autoneg
- | SUPPORTED_MII
- | SUPPORTED_TP);
+ if (pdata->has_gbit)
+ phydev->supported &= PHY_GBIT_FEATURES;
+ else
+ phydev->supported &= PHY_BASIC_FEATURES;
phydev->advertising = phydev->supported;
diff --git
a/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h
b/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h
index
53ac555
..
f845c42
100644
(file)
--- a/
target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h
+++ b/
target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h
@@
-28,6
+28,8
@@
struct ag71xx_platform_data {
u32 flush_reg;
u32 mii_if;
u8 mac_addr[ETH_ALEN];
+
+ u8 has_gbit:1;
};
struct ag71xx_mdio_platform_data {
This page took
0.027064 seconds
and
4
git commands to generate.