mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:26:48 +07:00
a10203c691
Add parallel port PPS client. It uses a standard method for capturing timestamps for assert edge transitions: getting a timestamp soon after an interrupt has happened. This is not a very precise source of time information due to interrupt handling delays. However, timestamps for clear edge transitions are much more precise because the interrupt handler continuously polls hardware port until the transition is done. Hardware port operations require only about 1us so the maximum error should not exceed this value. This was my primary goal when developing this client. Clear edge capture could be disabled using clear_wait parameter. Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su> Acked-by: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
33 lines
807 B
Plaintext
33 lines
807 B
Plaintext
#
|
|
# PPS clients configuration
|
|
#
|
|
|
|
if PPS
|
|
|
|
comment "PPS clients support"
|
|
|
|
config PPS_CLIENT_KTIMER
|
|
tristate "Kernel timer client (Testing client, use for debug)"
|
|
help
|
|
If you say yes here you get support for a PPS debugging client
|
|
which uses a kernel timer to generate the PPS signal.
|
|
|
|
This driver can also be built as a module. If so, the module
|
|
will be called pps-ktimer.
|
|
|
|
config PPS_CLIENT_LDISC
|
|
tristate "PPS line discipline"
|
|
depends on PPS
|
|
help
|
|
If you say yes here you get support for a PPS source connected
|
|
with the CD (Carrier Detect) pin of your serial port.
|
|
|
|
config PPS_CLIENT_PARPORT
|
|
tristate "Parallel port PPS client"
|
|
depends on PPS && PARPORT
|
|
help
|
|
If you say yes here you get support for a PPS source connected
|
|
with the interrupt pin of your parallel port.
|
|
|
|
endif
|