Skip to content
Commit 278d2404 authored by Luwei Zhou's avatar Luwei Zhou Committed by David S. Miller
Browse files

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: default avatarLuwei Zhou <b45643@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89bddcda
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment