Skip to content

Commit

Permalink
Merge branch 'ytja1103-ptp'
Browse files Browse the repository at this point in the history
Radu Pirea says:

====================
Add PTP support for TJA1103

This is the PTP support for TJA1103.
The RX timestamp is found in the reserved2 field of the PTP package.
The TX timestamp has to be read from the phy registers. Reading of the
timestamp works with interrupts or with polling(that starts when
.nxp_c45_txtstamp is called).
The implementation of .adjtime is done by read modify write because there
is no way to atomically add/subtract a constant from the clock value.

I've moved scaled_ppm_to_ppb function from ptp_clock.c to
ptp_clock_kernel.h in  order to be able to build the driver without
PTP_1588_CLOCK=y.
====================

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed May 10, 2021
2 parents 532062b + 514def5 commit 27d6414
Show file tree
Hide file tree
Showing 3 changed files with 556 additions and 30 deletions.
Loading

0 comments on commit 27d6414

Please sign in to comment.