summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fec_main.c
diff options
context:
space:
mode:
authorLuwei Zhou <b45643@freescale.com>2014-10-10 13:15:30 +0800
committerDavid S. Miller <davem@davemloft.net>2014-10-14 14:45:08 -0400
commit278d24047891a1bf4a98128eaa8ecafd019e58c2 (patch)
tree57cb9578e7e20ab6700a715e67834d08b399a11a /drivers/net/ethernet/freescale/fec_main.c
parent89bddcda7e4f4ff2586e736427405115c362bed4 (diff)
downloadblackbird-op-linux-278d24047891a1bf4a98128eaa8ecafd019e58c2.tar.gz
blackbird-op-linux-278d24047891a1bf4a98128eaa8ecafd019e58c2.zip
net: fec: ptp: Enable PPS output based on ptp clock
FEC ptp timer has 4 channel compare/trigger function. It can be used to enable pps output. The pulse would be ouput high exactly on N second. The pulse ouput high on compare event mode is used to produce pulse per second. The pulse width would be one cycle based on ptp timer clock source.Since 31-bit ptp hardware timer is used, the timer will wrap more than 2 seconds. We need to reload the compare compare event about every 1 second. Signed-off-by: Luwei Zhou <b45643@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec_main.c')
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 7a8209e73199..e364d1fc7bdc 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1622,6 +1622,8 @@ fec_enet_interrupt(int irq, void *dev_id)
complete(&fep->mdio_done);
}
+ fec_ptp_check_pps_event(fep);
+
return ret;
}
OpenPOWER on IntegriCloud