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)
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 <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