]> git.baikalelectronics.ru Git - kernel.git/commit
tsnep: Add free running cycle counter support
authorGerhard Engleder <gerhard@engleder-embedded.com>
Fri, 6 May 2022 20:01:42 +0000 (22:01 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 May 2022 07:48:09 +0000 (09:48 +0200)
commit8fe2eaaaf9f72ce14d6507b552476fc8d918495e
tree43baba2e7a4bf6193a9f47686f3af405a3923989
parentbe7bbcdf08c509c38e5f4942a9b9c08096b32ddb
tsnep: Add free running cycle counter support

The TSN endpoint Ethernet MAC supports a free running counter
additionally to its clock. This free running counter can be read and
hardware timestamps are supported. As the name implies, this counter
cannot be set and its frequency cannot be adjusted.

Add free running cycle counter support based on this free running
counter to physical clock. This also requires hardware time stamps
based on that free running counter.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/engleder/tsnep_hw.h
drivers/net/ethernet/engleder/tsnep_main.c
drivers/net/ethernet/engleder/tsnep_ptp.c