]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ytja1103-ptp'
authorDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:54:23 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:54:23 +0000 (14:54 -0700)
commitc03c42d87bf2627f3a17dd87989318bfaa382a1c
tree52d7f4fff7ffa70e632aff195c5a5ac03ee591bd
parentf84154fab4897b80d5832c84e35a5049401a5cb6
parentfef92c52b86be92b81ac47cfc6580a4554e6c150
Merge branch 'ytja1103-ptp'

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 <davem@davemloft.net>