]> 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)
commitce8e2fb9b4442b5a985705a3a0f703d75f4a085f
treea9355b766ec602a22119d78c707971014c4f4755
parent3e4182bb7e1f10615162bc109dcdf5f5c42343f9
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]