]> git.baikalelectronics.ru Git - kernel.git/commit
net: enetc: Initialize SerDes for SGMII and USXGMII protocols
authorMichael Walle <michael@walle.cc>
Sun, 19 Jul 2020 22:03:35 +0000 (00:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:05:49 +0000 (18:05 -0700)
commit27ea16b65e1911c75b47fe43dbe2f093c23c91b3
tree95d5be7904df64ba064012a31960e3d65f04d985
parent7447f303a6bb44cf1c5de87f607670ea811e2a5a
net: enetc: Initialize SerDes for SGMII and USXGMII protocols

ENETC has ethernet MACs capable of SGMII, 2500BaseX and USXGMII. But in
order to use these protocols some SerDes configurations need to be
performed. The SerDes is configurable via an internal PCS PHY which is
connected to an internal MDIO bus at address 0.

This patch basically removes the dependency on bootloader regarding
SerDes initialization.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_hw.h
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_pf.h