]> git.baikalelectronics.ru Git - kernel.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)
commitd350921705286281e59b9de17ea1386ca69a10ec
treef08c82f4ffc615da24254cb98e80e3983c4f58c4
parent8ce3a581ec7ea861354276366adfb461e16637a3
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