]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: ptp: Use hardware algorithm to adjust PTP counter.
authorLuwei Zhou <b45643@freescale.com>
Fri, 10 Oct 2014 05:15:29 +0000 (13:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 18:45:08 +0000 (14:45 -0400)
commit8856bc73c74d825a50e7965809d9565019bcfadb
treef545282de7d91e2efcd23d737cba07236e2b417e
parente6393420edd38381eda4157f5788d4d57e3259e2
net: fec: ptp: Use hardware algorithm to adjust PTP counter.

The FEC IP supports hardware adjustment for ptp timer. Refer to the description of
ENET_ATCOR and ENET_ATINC registers in the spec about the hardware adjustment. This
patch uses hardware support to adjust the ptp offset and frequency on the slave side.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Fugang Duan <b38611@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_ptp.c