]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dc5b95b7542bea5052339916dd725f9023e4a6c
treea9355b766ec602a22119d78c707971014c4f4755
parent1f55d3f28e616b9fea4d25e71dc553954aab12de
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]