]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-meson: extend phy mode setting
authorYixun Lan <yixun.lan@amlogic.com>
Sat, 28 Apr 2018 10:21:11 +0000 (10:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 15:29:59 +0000 (11:29 -0400)
commitdd844d04d985ac86914584a83994186b7959e518
treea145f3b0015a7bd64780a21dde916e4ab8ff8176
parente16091672196ed8e1c8b16e2636eb258fba2d745
net: stmmac: dwmac-meson: extend phy mode setting

In the Meson-AXG SoC, the phy mode setting of PRG_ETH0 in the glue layer
is extended from bit[0] to bit[2:0].
  There is no problem if we configure it to the RGMII 1000M PHY mode,
since the register setting is coincidentally compatible with previous one,
but for the RMII 100M PHY mode, the configuration need to be changed to
value - b100.
  This patch was verified with a RTL8201F 100M ethernet PHY.

Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c