]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1a2a9eb0a76ac31ea670fe6b997ad0f36af221f
tree8894cc88233058131e2cc70d7549f21552a71c61
parentab9e0b7117a68d334afc3b9cb8cd5fde05a538bb
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