]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: socfgpa: Ensure emac bit set in System Manger for PTP
authorPhil Reid <preid@electromag.com.au>
Thu, 7 Apr 2016 07:55:35 +0000 (15:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2016 03:44:21 +0000 (23:44 -0400)
commite0762d66283ffb58d5ef87ac1cfe3ba6e5245390
tree999638e12bf80aa92ca091ee114c5ef195d0e041
parent3be78e4de99d72f9f33b458d5e3c4dacbc8e4aa8
net: stmmac: socfgpa: Ensure emac bit set in System Manger for PTP

When using the PTP fpga to hps clock source for the stmmac module
the appropriate bit in the System Manager FPGA Interface Group register
needs to be set. This is not set by the bootloader setup  when the
HPS emac pins are being for this emac module.

This allows the PTP clock to be sourced from the FPGA and also connects
the PTP pps and ext trig signals to the stmmac PTP hardware.

Patch proposed by Phil Collins.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c