drivers: net: apply serdes configuration for ENETC Ethernet interfaces
authorAlex Marginean <alexandru.marginean@nxp.com>
Wed, 3 Jul 2019 09:11:42 +0000 (12:11 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 25 Jul 2019 18:13:30 +0000 (13:13 -0500)
commite4aafd5c207002f54b1dfd99b0b9e397c68dbe28
treecd4d3766e413da96a733bf603948bf590cf8903b
parent1d99534beffea9b8e54a2cf31776cff68c4fc676
drivers: net: apply serdes configuration for ENETC Ethernet interfaces

Ethernet interfaces using serial protocols go through the serdes block
integrated in the SoC.  This is accessed over dedicated internal MDIOs
which are part of the Ethernet PCI functions.  Set up serdes at _start,
along with other protocol specific port/MAC configuration.
MDIO code is shared with enetc_mdio, read/write functions are exported
from fsl_enetc_mdio for this reason.

Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fsl_enetc.c
drivers/net/fsl_enetc.h
drivers/net/fsl_enetc_mdio.c