aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-07-23 18:35:34 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-07-23 18:35:34 +0000
commit4df03c9b282584253ab41415822acd9ee9848786 (patch)
tree4ab69664e00fce72bae87c8fe8801cbdba6cf066
parent7cd21d77faa1875b33e25227d4e1f12ad7f374ae (diff)
downloadupstream-4df03c9b282584253ab41415822acd9ee9848786.tar.gz
upstream-4df03c9b282584253ab41415822acd9ee9848786.tar.bz2
upstream-4df03c9b282584253ab41415822acd9ee9848786.zip
Add back the port priority for r6040
SVN-Revision: 8134
-rw-r--r--target/linux/rdc-2.6/files/drivers/net/r6040.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/net/r6040.c b/target/linux/rdc-2.6/files/drivers/net/r6040.c
index f495b4af69..6c9a232cdf 100644
--- a/target/linux/rdc-2.6/files/drivers/net/r6040.c
+++ b/target/linux/rdc-2.6/files/drivers/net/r6040.c
@@ -806,6 +806,12 @@ for (i = 0; i < RX_DCNT; i++) {
phy_write(ioaddr, lp->phy_addr, 4, PHY_CAP);
phy_write(ioaddr, lp->phy_addr, 0, PHY_MODE);
+ /* Port priority */
+ phy_write(ioaddr,29,19,(phy_read(ioaddr,29,19)|0x0020)); /* port 0 */
+ phy_write(ioaddr,29,19,(phy_read(ioaddr,29,19)|0x0020)); /* port 1 */
+ phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x2000)); /* port 2 */
+ phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x0020)); /* port 3 */
+
if (PHY_MODE == 0x3100)
lp->phy_mode = phy_mode_chk(dev);
else lp->phy_mode = (PHY_MODE & 0x0100) ? 0x8000:0x0;