]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-rk: abstract access to mac settings in GRF
authorHeiko Stübner <heiko@sntech.de>
Sun, 21 Jun 2015 19:52:53 +0000 (21:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 13:49:25 +0000 (06:49 -0700)
commitb6819e018d1aee6a37481ece512ac516797c4f61
tree654daa7afe368cad267de99baaea0fc494fcce28
parentc4fdaa354814d8c070d5cedd189e42536ebec628
net: stmmac: dwmac-rk: abstract access to mac settings in GRF

The mac settings like RGMII/RMII, speeds etc are done in the so called
"General Register Files", contain numerous other settings as well and
always seem to change between Rockchip SoCs. Therefore abstract the
register accesses into a per-soc ops struct to make this reusable on
other Rockchip SoCs.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c