generic: ar8216: use mdiobus_write in ar8236_hw_init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30838 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
3e76187a42
commit
0c2840d0b6
|
@ -643,10 +643,10 @@ ar8236_hw_init(struct ar8216_priv *priv) {
|
||||||
/* Initialize the PHYs */
|
/* Initialize the PHYs */
|
||||||
bus = priv->phy->bus;
|
bus = priv->phy->bus;
|
||||||
for (i = 0; i < 5; i++) {
|
for (i = 0; i < 5; i++) {
|
||||||
bus->write(bus, i, MII_ADVERTISE,
|
mdiobus_write(bus, i, MII_ADVERTISE,
|
||||||
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
|
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
|
||||||
ADVERTISE_PAUSE_ASYM);
|
ADVERTISE_PAUSE_ASYM);
|
||||||
bus->write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
|
mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
|
||||||
}
|
}
|
||||||
msleep(1000);
|
msleep(1000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue