net: stmmac: Add Adaptrum Anarion GMAC glue layer
authorAlexandru Gagniuc <alex.g@adaptrum.com>
Fri, 4 Aug 2017 20:08:51 +0000 (13:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 04:31:32 +0000 (21:31 -0700)
commit2d1611aff3f22a58ae8331ada6c1592e784ccb93
treea9355b766ec602a22119d78c707971014c4f4755
parentfb84af8a4397ee664a51c2da1dd64fb3d582ee24
net: stmmac: Add Adaptrum Anarion GMAC glue layer

Before the GMAC on the Anarion chip can be used, the PHY interface
selection must be configured with the DWMAC block in reset.

This layer covers a block containing only two registers. Although it
is possible to model this as a reset controller and use the "resets"
property of stmmac, it's much more intuitive to include this in the
glue layer instead.

At this time only RGMII is supported, because it is the only mode
which has been validated hardware-wise.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/Makefile
drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c [new file with mode: 0644]