mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 00:45:28 +00:00
ramips: mt7620: enable autonegotiation for all ports
This enables autonegotiation for all ephy ports on probe. Some devices do not configure the ports, particularly port 4. Signed-off-by: Gaspare Bruno <gaspare@anlix.io> [replace magic values ; reword commit message] Signed-off-by: David Bauer <mail@david-bauer.net> (cherry picked from commit 0056ffb468f40f34bea006eb889b70c9a4f562e0)
This commit is contained in:
parent
08ec622c46
commit
c652a06eef
@ -171,6 +171,7 @@ static void mt7620_hw_init(struct mt7620_gsw *gsw, int mdio_mode)
|
||||
for (i = 0; i <= 4; i++) {
|
||||
val = _mt7620_mii_read(gsw, gsw->ephy_base + i, MII_BMCR);
|
||||
val &= ~BMCR_PDOWN;
|
||||
val |= BMCR_ANRESTART | BMCR_ANENABLE | BMCR_SPEED100;
|
||||
_mt7620_mii_write(gsw, gsw->ephy_base + i, MII_BMCR, val);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user