]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5b80173aa11789a84c9fad1957d41696afd274a
tree2121873a04bd15b229a71672f7a8f05932fef2d5
parent60f37ee5e2ff2ca10a56686c1d856f1aa619496a
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