OSDN Git Service

net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 24 Oct 2017 17:57:13 +0000 (19:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 02:58:49 +0000 (11:58 +0900)
commit634db83b82658f4641d8026e340c6027cf74a6bb
tree8894cc88233058131e2cc70d7549f21552a71c61
parentb5beecb580376cd8d959eb990abece6a748a3ce3
net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

The Allwinner H3 SoC have two distinct MDIO bus, only one could be
active at the same time.
The selection of the active MDIO bus are done via some bits in the EMAC
register of the system controller.

This patch implement this MDIO switch via a custom MDIO-mux.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c