mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 21:00:14 +02:00
ar71xx: ag71xx: start aneg on switch PHYs after reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30925 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9d0c4ce009
commit
0fced5df74
@ -596,6 +596,16 @@ static int ar7240sw_reset(struct ar7240sw *as)
|
|||||||
ret = ar7240sw_reg_wait(mii, AR7240_REG_MASK_CTRL,
|
ret = ar7240sw_reg_wait(mii, AR7240_REG_MASK_CTRL,
|
||||||
AR7240_MASK_CTRL_SOFT_RESET, 0, 1000);
|
AR7240_MASK_CTRL_SOFT_RESET, 0, 1000);
|
||||||
|
|
||||||
|
/* setup PHYs */
|
||||||
|
for (i = 0; i < AR7240_NUM_PHYS; i++) {
|
||||||
|
ar7240sw_phy_write(mii, i, MII_ADVERTISE,
|
||||||
|
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
|
||||||
|
ADVERTISE_PAUSE_ASYM);
|
||||||
|
ar7240sw_phy_write(mii, i, MII_BMCR,
|
||||||
|
BMCR_RESET | BMCR_ANENABLE);
|
||||||
|
}
|
||||||
|
msleep(1000);
|
||||||
|
|
||||||
ar7240sw_setup(as);
|
ar7240sw_setup(as);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user