]> 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)
commit7ea3dbf13bf22225c16f63d7e5fe4db9832074ab
tree2121873a04bd15b229a71672f7a8f05932fef2d5
parenta542f01da6f7999442664df3ecdc3c04d1ccd8ac
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