• L
    net: fec: ptp: Enable PPS output based on ptp clock · 278d2404
    Luwei Zhou 提交于
    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: NLuwei Zhou <b45643@freescale.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    278d2404
fec_main.c 87.3 KB