net: fec: ptp: Use hardware algorithm to adjust PTP counter.
authorLuwei Zhou <[email protected]>
Fri, 10 Oct 2014 05:15:29 +0000 (13:15 +0800)
committerDavid S. Miller <[email protected]>
Tue, 14 Oct 2014 18:45:08 +0000 (14:45 -0400)
commit89bddcda7e4f4ff2586e736427405115c362bed4
treef545282de7d91e2efcd23d737cba07236e2b417e
parentf28460b229919387b2f97f3a688d0dd86cc819c9
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 <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Fugang Duan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_ptp.c