enetc: Add ENETC PF level external MDIO support
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Tue, 26 Feb 2019 13:42:22 +0000 (15:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2019 19:21:32 +0000 (11:21 -0800)
commitebfcb23d62ab100f7ea0b97ed140175824ab2080
tree33a6c01ad730616e835400c876520eae737a6d3e
parent0c805404f083cad1cd5a79eda421d726ce76e63a
enetc: Add ENETC PF level external MDIO support

Each ENETC PF has its own MDIO interface, the corresponding
MDIO registers are mapped in the ENETC's Port register block.
The current patch adds a driver for these PF level MDIO buses,
so that each PF can manage directly its own external link.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/Makefile
drivers/net/ethernet/freescale/enetc/enetc_mdio.c [new file with mode: 0644]
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_pf.h