forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: mt7530: Implement set_port_link
set_port_link is required by swconfig to setup link mode. Here we implemented set_port_link by touching MII PHY registers. For autoneg enabled case, we set advertise registers to let autoneg reach the target mode and then retrigger autoneg. For non autoneg case, we set BMCR register to force PHY enter desired mode. This patch have been tested on both MT7620 and MT7621. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
- Loading branch information
Showing
1 changed file
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters