]> 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)
commit1e670c3572b01e799ea34e4798faf00de1e1aa01
treeb5d401626a0bc50d3feb4c897a2a864ed472fff7
parent27ea16b65e1911c75b47fe43dbe2f093c23c91b3
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