]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitc12fcc528c9ea2deab0c1669a7f048bb1a2119f9
treecd4d3766e413da96a733bf603948bf590cf8903b
parent13246dd02be53be31d1958704cb06214b52663c9
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