OSDN Git Service

net: stmmac: dwmac-sun8i: Add support for GMAC on Allwinner R40 SoC
authorChen-Yu Tsai <wens@csie.org>
Sun, 13 May 2018 19:14:25 +0000 (03:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 19:06:54 +0000 (15:06 -0400)
commit9bf5085aaaadd6488a0ea6121e0cb7dadaf0652a
tree3eb950b3fa5f608c25cccd0fce616bb7cb3b9c1d
parent7b270b725a867587957676a8dae862caad558011
net: stmmac: dwmac-sun8i: Add support for GMAC on Allwinner R40 SoC

The Allwinner R40 SoC has the EMAC controller supported by dwmac-sun8i.
It is named "GMAC", while EMAC refers to the 10/100 Mbps Ethernet
controller supported by sun4i-emac. The controller is the same, but
the R40 has the glue layer controls in the clock control unit (CCU),
with a reduced RX delay chain, and no TX delay chain.

This patch adds support for it using the framework laid out by previous
patches to map the differences.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c