diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2018-02-19 22:15:56 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-03-06 19:49:05 +0100 |
commit | 39b5218434d38715a85b7bd6dd8d279c3e1e905d (patch) | |
tree | 579bcb6ebab1d59c8835fe96f2b512baa9fdd419 /target/linux/ramips/files-4.9/drivers/net | |
parent | b562c0c91b0cfb7a02a7ca69063bebda6225a672 (diff) | |
download | upstream-39b5218434d38715a85b7bd6dd8d279c3e1e905d.tar.gz upstream-39b5218434d38715a85b7bd6dd8d279c3e1e905d.tar.bz2 upstream-39b5218434d38715a85b7bd6dd8d279c3e1e905d.zip |
ramips: mt7620: power up ephy port 4
In some boards port 4 of mt7620 switch is powered down in bootloader
configuration as lan/wan package leak mitigation.
Reset ephy port 4 to default settings to power up the port.
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[clarify issue in commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/files-4.9/drivers/net')
-rw-r--r-- | target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/gsw_mt7620.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/gsw_mt7620.c b/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/gsw_mt7620.c index b675ad0c4a..4093f09d41 100644 --- a/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/gsw_mt7620.c +++ b/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/gsw_mt7620.c @@ -166,6 +166,7 @@ static void mt7620_hw_init(struct mt7620_gsw *gsw, struct device_node *np) _mt7620_mii_write(gsw, 4, 30, 0xa000); _mt7620_mii_write(gsw, 4, 4, 0x05e1); _mt7620_mii_write(gsw, 4, 16, 0x1313); + _mt7620_mii_write(gsw, 4, 0, 0x3100); pr_info("gsw: setting port4 to ephy mode\n"); } } |