]> 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)
commit8f01fd87374d366378692bd80059dd9d2bb675c2
tree999638e12bf80aa92ca091ee114c5ef195d0e041
parentc8367eeb2612ab0587745d3191f08d61cd1346eb
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