net: stmmac: modified pcs mode support for RGMII
authorDejin Zheng <zhengdejin5@gmail.com>
Wed, 15 Jan 2020 15:53:23 +0000 (23:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 08:43:18 +0000 (09:43 +0100)
commita47b9e15c32f8cd7ad5cb124a54d607b28879f79
tree9a09ffdce5c680e8962f3133b73e9a1d560a28ab
parentb3f7e3f23a763ccaae7b52d88d2c91e66c80d406
net: stmmac: modified pcs mode support for RGMII

snps databook noted that physical coding sublayer (PCS) interface
that can be used when the MAC is configured for the TBI, RTBI, or
SGMII PHY interface. we have RGMII and SGMII in a SoC and it also
has the PCS block. it needs stmmac_init_phy and stmmac_mdio_register
function for initializing phy when it used RGMII interface.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c