Skip to content
Commit 797d3186 authored by Vincent Cheng's avatar Vincent Cheng Committed by David S. Miller
Browse files

ptp: ptp_clockmatrix: Add wait_for_sys_apll_dpll_lock.



Part of the device initialization aligns the rising edge of the output
clock to the internal 1 PPS clock. If the system APLL and DPLL is not
locked, then the alignment will fail and there will be a fixed offset
between the internal 1 PPS clock and the output clock.

After loading the device firmware, poll the system APLL and DPLL for
locked state prior to initialization, timing out after 2 seconds.

Signed-off-by: default avatarVincent Cheng <vincent.cheng.xh@renesas.com>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 85749080
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