net: ethernet: mediatek: Re-add support SGMII
authorRené van Dorst <opensource@vdorst.com>
Sun, 25 Aug 2019 17:43:40 +0000 (19:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:19:27 +0000 (20:19 -0700)
commit7e538372694b3e449783eed3981d59d2597c2882
tree9bf928677a0dd882a474f87f35f04380402949ec
parentb8fc9f30821ec0ca018b3716fbed55ab6910a8f1
net: ethernet: mediatek: Re-add support SGMII

* Re-add SGMII support but now with PHYLINK API support
  So the SGMII changes are more clear
* Move SGMII block setup from mtk_gmac_sgmii_path_setup() to
  mtk_mac_config()
* Merge mtk_setup_hw_path() into mtk_mac_config()
* Remove mediatek,physpeed property, fixed-link supports now any speed so
  speed = <2500>; is now valid with PHYLINK
* Demagic SGMII register values
* Use phylink state to setup fixed-link mode

Signed-off-by: René van Dorst <opensource@vdorst.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_path.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h
drivers/net/ethernet/mediatek/mtk_sgmii.c