Skip to content

Commit 4d6320f

Browse files
Min LiNipaLocal
authored andcommitted
ptp: clockmatrix: dco input-to-output delay is 20 FOD cycles + 8ns
Signed-off-by: Min Li <min.li.xe@renesas.com> Signed-off-by: NipaLocal <nipa@local>
1 parent 6e57f93 commit 4d6320f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ptp/ptp_clockmatrix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,7 +2165,7 @@ static int configure_channel_pll(struct idtcm_channel *channel)
21652165

21662166
/*
21672167
* Compensate for the PTP DCO input-to-output delay.
2168-
* This delay is 18 FOD cycles.
2168+
* This delay is 20 FOD cycles + 8ns.
21692169
*/
21702170
static u32 idtcm_get_dco_delay(struct idtcm_channel *channel)
21712171
{
@@ -2196,7 +2196,7 @@ static u32 idtcm_get_dco_delay(struct idtcm_channel *channel)
21962196
fodFreq = (u32)div_u64(m, n);
21972197

21982198
if (fodFreq >= 500000000)
2199-
return (u32)div_u64(18 * (u64)NSEC_PER_SEC, fodFreq);
2199+
return (u32)div_u64(20 * (u64)NSEC_PER_SEC, fodFreq) + 8;
22002200

22012201
return 0;
22022202
}

0 commit comments

Comments
 (0)