• Luwei Zhou's avatar
    net: fec: ptp: Enable PPS output based on ptp clock · 278d2404
    Luwei Zhou authored
    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>
    278d2404
fec.h 20.3 KB