aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2022-03-16 23:02:42 -0400
committerHauke Mehrtens <hauke@hauke-m.de>2023-02-18 16:55:35 +0100
commit6b07d0c077e8bf98ca7e49864774b864e581205a (patch)
tree5f809a8f740adb21bf070fc4cd361b61dd7921a7 /package/boot/uboot-envtools
parent1173edf23b3440137d60162d1ef9f48ffa13e3e2 (diff)
downloadupstream-6b07d0c077e8bf98ca7e49864774b864e581205a.tar.gz
upstream-6b07d0c077e8bf98ca7e49864774b864e581205a.tar.bz2
upstream-6b07d0c077e8bf98ca7e49864774b864e581205a.zip
ramips: mt7620: split gsw hw_init to mac_init, ephy_init
in order for the option ephy-disable to work without also needing ephy-base option, we have to skip all the lines that write to mdio addresses that assume those addresses do not have an external switch. Otherwise, ephy ports will be disabled in hardware, but register writes still happen as if they are enabled. Split the functions so that other things are done first, and ephy port setup can be skipped with a simple "return". Tested on Engenius EPG600 (MT7620A ver:2 eco:3) with QCA8337 external switch Ref: cc6fd6fbb505 ("ramips: mt7620: add ephy-disable option to switch driver") Signed-off-by: Michael Pratt <mcpratt@pm.me>
Diffstat (limited to 'package/boot/uboot-envtools')
0 files changed, 0 insertions, 0 deletions