]> git.karo-electronics.de Git - linux-beck.git/commit
net: stmmac: add platform init/exit for Altera's ARM socfpga
authorVince Bridgers <vbridgers2013@gmail.com>
Mon, 30 Jun 2014 01:34:51 +0000 (20:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 01:37:54 +0000 (18:37 -0700)
commit0acf16768740776feffac506ce93b1c06c059ac6
treef08c82f4ffc615da24254cb98e80e3983c4f58c4
parent48bc03433cfdcac7a3bbb233d5c9f95297a0f5ab
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