]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/net/ethernet/freescale/enetc/enetc_pf.c
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)
commit975d183ef0ca071dfeda4e70d268d1103d09ad5f
tree95d5be7904df64ba064012a31960e3d65f04d985
parent16659b811add79493183e7009744026cdb3d9c62
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