OSDN Git Service

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)
commit07095c025ac2f75c14550c287683ae90a8cf706e
treeb5d401626a0bc50d3feb4c897a2a864ed472fff7
parent975d183ef0ca071dfeda4e70d268d1103d09ad5f
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