Commit 634db83b authored by Corentin Labbe's avatar Corentin Labbe Committed by David S. Miller

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: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b5beecb5
...@@ -159,6 +159,7 @@ config DWMAC_SUN8I ...@@ -159,6 +159,7 @@ config DWMAC_SUN8I
tristate "Allwinner sun8i GMAC support" tristate "Allwinner sun8i GMAC support"
default ARCH_SUNXI default ARCH_SUNXI
depends on OF && (ARCH_SUNXI || COMPILE_TEST) depends on OF && (ARCH_SUNXI || COMPILE_TEST)
select MDIO_BUS_MUX
---help--- ---help---
Support for Allwinner H3 A83T A64 EMAC ethernet controllers. Support for Allwinner H3 A83T A64 EMAC ethernet controllers.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment