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)
commit0fb98db19700a4e1d80de401ffab42871c388dd9
tree654daa7afe368cad267de99baaea0fc494fcce28
parentc48fa33c1fb2ccdb4bcc863a7b841f11efe0f8b0
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