Kconfig 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # PTP clock support configuration
  4. #
  5. menu "PTP clock support"
  6. config PTP_1588_CLOCK
  7. tristate "PTP clock support"
  8. depends on NET && POSIX_TIMERS
  9. default ETHERNET
  10. select PPS
  11. select NET_PTP_CLASSIFY
  12. help
  13. The IEEE 1588 standard defines a method to precisely
  14. synchronize distributed clocks over Ethernet networks. The
  15. standard defines a Precision Time Protocol (PTP), which can
  16. be used to achieve synchronization within a few dozen
  17. microseconds. In addition, with the help of special hardware
  18. time stamping units, it can be possible to achieve
  19. synchronization to within a few hundred nanoseconds.
  20. This driver adds support for PTP clocks as character
  21. devices. If you want to use a PTP clock, then you should
  22. also enable at least one clock driver as well.
  23. To compile this driver as a module, choose M here: the module
  24. will be called ptp.
  25. config PTP_1588_CLOCK_OPTIONAL
  26. tristate
  27. default y if PTP_1588_CLOCK=n
  28. default PTP_1588_CLOCK
  29. help
  30. Drivers that can optionally use the PTP_1588_CLOCK framework
  31. should depend on this symbol to prevent them from being built
  32. into vmlinux while the PTP support itself is in a loadable
  33. module.
  34. If PTP support is disabled, this dependency will still be
  35. met, and drivers refer to dummy helpers.
  36. config PTP_1588_CLOCK_DTE
  37. tristate "Broadcom DTE as PTP clock"
  38. depends on PTP_1588_CLOCK
  39. depends on NET && HAS_IOMEM
  40. depends on ARCH_BCM_MOBILE || (ARCH_BCM_IPROC && !(ARCH_BCM_NSP || ARCH_BCM_5301X)) || COMPILE_TEST
  41. default y
  42. help
  43. This driver adds support for using the Digital timing engine
  44. (DTE) in the Broadcom SoC's as a PTP clock.
  45. The clock can be used in both wired and wireless networks
  46. for PTP purposes.
  47. To compile this driver as a module, choose M here: the module
  48. will be called ptp_dte.
  49. config PTP_1588_CLOCK_QORIQ
  50. tristate "Freescale QorIQ 1588 timer as PTP clock"
  51. depends on GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST
  52. depends on PTP_1588_CLOCK
  53. default y
  54. help
  55. This driver adds support for using the Freescale QorIQ 1588
  56. timer as a PTP clock. This clock is only useful if your PTP
  57. programs are getting hardware time stamps on the PTP Ethernet
  58. packets using the SO_TIMESTAMPING API.
  59. To compile this driver as a module, choose M here: the module
  60. will be called ptp-qoriq.
  61. comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
  62. depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n
  63. config DP83640_PHY
  64. tristate "Driver for the National Semiconductor DP83640 PHYTER"
  65. depends on NETWORK_PHY_TIMESTAMPING
  66. depends on PHYLIB
  67. depends on PTP_1588_CLOCK
  68. select CRC32
  69. help
  70. Supports the DP83640 PHYTER with IEEE 1588 features.
  71. This driver adds support for using the DP83640 as a PTP
  72. clock. This clock is only useful if your PTP programs are
  73. getting hardware time stamps on the PTP Ethernet packets
  74. using the SO_TIMESTAMPING API.
  75. In order for this to work, your MAC driver must also
  76. implement the skb_tx_timestamp() function.
  77. config PTP_1588_CLOCK_INES
  78. tristate "ZHAW InES PTP time stamping IP core"
  79. depends on NETWORK_PHY_TIMESTAMPING
  80. depends on HAS_IOMEM
  81. depends on PHYLIB
  82. depends on PTP_1588_CLOCK
  83. help
  84. This driver adds support for using the ZHAW InES 1588 IP
  85. core. This clock is only useful if the MII bus of your MAC
  86. is wired up to the core.
  87. config PTP_1588_CLOCK_PCH
  88. tristate "Intel PCH EG20T as PTP clock"
  89. depends on X86_32 || COMPILE_TEST
  90. depends on HAS_IOMEM && PCI
  91. depends on NET
  92. depends on PTP_1588_CLOCK
  93. help
  94. This driver adds support for using the PCH EG20T as a PTP
  95. clock. The hardware supports time stamping of PTP packets
  96. when using the end-to-end delay (E2E) mechanism. The peer
  97. delay mechanism (P2P) is not supported.
  98. This clock is only useful if your PTP programs are getting
  99. hardware time stamps on the PTP Ethernet packets using the
  100. SO_TIMESTAMPING API.
  101. To compile this driver as a module, choose M here: the module
  102. will be called ptp_pch.
  103. config PTP_1588_CLOCK_KVM
  104. tristate "KVM virtual PTP clock"
  105. depends on PTP_1588_CLOCK
  106. depends on (KVM_GUEST && X86) || (HAVE_ARM_SMCCC_DISCOVERY && ARM_ARCH_TIMER)
  107. default y
  108. help
  109. This driver adds support for using kvm infrastructure as a PTP
  110. clock. This clock is only useful if you are using KVM guests.
  111. To compile this driver as a module, choose M here: the module
  112. will be called ptp_kvm.
  113. config PTP_1588_CLOCK_IDT82P33
  114. tristate "IDT 82P33xxx PTP clock"
  115. depends on PTP_1588_CLOCK && I2C
  116. default n
  117. help
  118. This driver adds support for using the IDT 82P33xxx as a PTP
  119. clock. This clock is only useful if your time stamping MAC
  120. is connected to the IDT chip.
  121. To compile this driver as a module, choose M here: the module
  122. will be called ptp_idt82p33.
  123. config PTP_1588_CLOCK_IDTCM
  124. tristate "IDT CLOCKMATRIX as PTP clock"
  125. depends on PTP_1588_CLOCK && I2C
  126. default n
  127. help
  128. This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP
  129. clock. This clock is only useful if your time stamping MAC
  130. is connected to the IDT chip.
  131. To compile this driver as a module, choose M here: the module
  132. will be called ptp_clockmatrix.
  133. config PTP_1588_CLOCK_VMW
  134. tristate "VMware virtual PTP clock"
  135. depends on ACPI && HYPERVISOR_GUEST && X86
  136. depends on PTP_1588_CLOCK
  137. help
  138. This driver adds support for using VMware virtual precision
  139. clock device as a PTP clock. This is only useful in virtual
  140. machines running on VMware virtual infrastructure.
  141. To compile this driver as a module, choose M here: the module
  142. will be called ptp_vmw.
  143. config PTP_1588_CLOCK_OCP
  144. tristate "OpenCompute TimeCard as PTP clock"
  145. depends on PTP_1588_CLOCK
  146. depends on HAS_IOMEM && PCI
  147. depends on I2C && MTD
  148. depends on SERIAL_8250
  149. depends on !S390
  150. depends on COMMON_CLK
  151. select NET_DEVLINK
  152. select CRC16
  153. help
  154. This driver adds support for an OpenCompute time card.
  155. The OpenCompute time card is an atomic clock along with
  156. a GPS receiver that provides a Grandmaster clock source
  157. for a PTP enabled network.
  158. More information is available at http://www.timingcard.com/
  159. config PTP_QCOM_CLOCK_TSC
  160. tristate "QCOM TSC as PTP clock"
  161. depends on COMMON_CLK
  162. help
  163. This driver adds support for using the TSC as a PTP clock.
  164. The hardware supports time stamping of PTP packets.
  165. This PTP driver also registers interrupts for ETU(Event Timestamp Unit)
  166. and updates the TSC timestamps to PTP clock.
  167. To compile this driver as a module, choose M here: the module
  168. will be called ptp_qcom_tsc.
  169. endmenu