AnsweredAssumed Answered

I need to trigger ENET_1588_EVENT2_OUT from the Freescale MAC to generate a 1PPS.

Question asked by nxpcatt on Feb 17, 2017

I am trying to generate a 1PPS from the Freescale Ethernet chip.  I believe I can attach the ENET counter/timer interrupt to ENET_1588_EVENT2_OUT which is attached to Pad AD22 via the device tree (MX6QDL_PAD_ENET_RX_ER__ENET_1588_EVENT2_OUT).  The code I am looking at is /freescale/fec_ptp.c but I am unsure where to call the initialisation with the correct parameters or what code I may have to change or how to build the code into a Kernal Object (fec.ko).  The 1PPS must occur on the second boundary.

My goal is to measure the latency of this 1PPS output against an incoming 1PPS from a GPS. I am sure people have done this sort of thing before, probably on PTP projects like myself.  Any help would be appreciated to point me in the right direction.