]> git.baikalelectronics.ru Git - kernel.git/commit
net: enetc: Use DT protocol information to set up the ports
authorAlex Marginean <alexandru.marginean@nxp.com>
Sun, 19 Jul 2020 22:03:36 +0000 (00:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:05:49 +0000 (18:05 -0700)
commit538075226fa1aa28bf9f90220d3e4673c4c873e0
treeb5d401626a0bc50d3feb4c897a2a864ed472fff7
parent4d8cf5b89439685bb37323314fed64ccbe5c2765
net: enetc: Use DT protocol information to set up the ports

Use DT information rather than in-band information from bootloader to
set up MAC for XGMII. For RGMII use the DT indication in addition to
RGMII defaults in hardware.
However, this implies that PHY connection information needs to be
extracted before netdevice creation, when the ENETC Port MAC is
being configured.

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