net: stmmac: add platform init/exit for Altera's ARM socfpga
authorVince Bridgers <vbridgers2013@gmail.com>
Mon, 28 Jul 2014 19:07:58 +0000 (14:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jul 2014 22:11:54 +0000 (15:11 -0700)
commit2d871aa07136fe6e576bde63072cf33e2c664e95
tree2121873a04bd15b229a71672f7a8f05932fef2d5
parent7aa06bf57bb633681e11c06c85604ad014910d55
net: stmmac: add platform init/exit for Altera's ARM socfpga

This patch adds platform init/exit functions and modifications to support
suspend/resume for the Altera Cyclone 5 SOC Ethernet controller. The platform
exit function puts the controller into reset using the socfpga reset
controller driver. The platform init function sets up the Synopsys mac by
first making sure the Ethernet controller is held in reset, programming the
phy mode through external support logic, then deasserts reset through
the socfpga reset manager driver.

Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c