Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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 if ARCH_BCM_MOBILE || ARCH_BCM_IPROC
  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 if GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF
  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 MIPS_GENERIC || 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_VMCLOCK
  114. tristate "Virtual machine PTP clock"
  115. depends on X86_TSC || ARM_ARCH_TIMER
  116. depends on PTP_1588_CLOCK && ARCH_SUPPORTS_INT128
  117. default PTP_1588_CLOCK_KVM
  118. help
  119. This driver adds support for using a virtual precision clock
  120. advertised by the hypervisor. This clock is only useful in virtual
  121. machines where such a device is present.
  122. Unlike the KVM virtual PTP clock, the VMCLOCK device offers support
  123. for reliable timekeeping even across live migration. So this driver
  124. is enabled by default whenever the KVM PTP clock is.
  125. To compile this driver as a module, choose M here: the module
  126. will be called ptp_vmclock.
  127. config PTP_1588_CLOCK_IDT82P33
  128. tristate "IDT 82P33xxx PTP clock"
  129. depends on PTP_1588_CLOCK && I2C
  130. default n
  131. help
  132. This driver adds support for using the IDT 82P33xxx as a PTP
  133. clock. This clock is only useful if your time stamping MAC
  134. is connected to the IDT chip.
  135. To compile this driver as a module, choose M here: the module
  136. will be called ptp_idt82p33.
  137. config PTP_1588_CLOCK_IDTCM
  138. tristate "IDT CLOCKMATRIX as PTP clock"
  139. depends on PTP_1588_CLOCK && I2C
  140. default n
  141. help
  142. This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP
  143. clock. This clock is only useful if your time stamping MAC
  144. is connected to the IDT chip.
  145. To compile this driver as a module, choose M here: the module
  146. will be called ptp_clockmatrix.
  147. config PTP_1588_CLOCK_FC3W
  148. tristate "RENESAS FemtoClock3 Wireless as PTP clock"
  149. depends on PTP_1588_CLOCK && I2C
  150. default n
  151. help
  152. This driver adds support for using Renesas FemtoClock3 Wireless
  153. as a PTP clock. This clock is only useful if your time stamping
  154. MAC is connected to the RENESAS chip.
  155. To compile this driver as a module, choose M here: the module
  156. will be called ptp_fc3.
  157. config PTP_1588_CLOCK_MOCK
  158. tristate "Mock-up PTP clock"
  159. depends on PTP_1588_CLOCK
  160. help
  161. This driver offers a set of PTP clock manipulation operations over
  162. the system monotonic time. It can be used by virtual network device
  163. drivers to emulate PTP capabilities.
  164. To compile this driver as a module, choose M here: the module
  165. will be called ptp_mock.
  166. config PTP_1588_CLOCK_VMW
  167. tristate "VMware virtual PTP clock"
  168. depends on ACPI && HYPERVISOR_GUEST && X86
  169. depends on PTP_1588_CLOCK
  170. help
  171. This driver adds support for using VMware virtual precision
  172. clock device as a PTP clock. This is only useful in virtual
  173. machines running on VMware virtual infrastructure.
  174. To compile this driver as a module, choose M here: the module
  175. will be called ptp_vmw.
  176. config PTP_1588_CLOCK_OCP
  177. tristate "OpenCompute TimeCard as PTP clock"
  178. depends on PTP_1588_CLOCK
  179. depends on HAS_IOMEM && PCI
  180. depends on I2C && MTD
  181. depends on SERIAL_8250
  182. depends on !S390
  183. depends on COMMON_CLK
  184. select NET_DEVLINK
  185. select CRC16
  186. select DPLL
  187. help
  188. This driver adds support for an OpenCompute time card.
  189. The OpenCompute time card is an atomic clock along with
  190. a GPS receiver that provides a Grandmaster clock source
  191. for a PTP enabled network.
  192. More information is available at http://www.timingcard.com/
  193. config PTP_DFL_TOD
  194. tristate "FPGA DFL ToD Driver"
  195. depends on FPGA_DFL
  196. depends on PTP_1588_CLOCK
  197. help
  198. The DFL (Device Feature List) device driver for the Intel ToD
  199. (Time-of-Day) device in FPGA card. The ToD IP within the FPGA
  200. is exposed as PTP Hardware Clock (PHC) device to the Linux PTP
  201. stack to synchronize the system clock to its ToD information
  202. using phc2sys utility of the Linux PTP stack.
  203. To compile this driver as a module, choose M here: the module
  204. will be called ptp_dfl_tod.
  205. config PTP_S390
  206. tristate "S390 PTP driver"
  207. depends on PTP_1588_CLOCK
  208. depends on S390
  209. help
  210. This driver adds support for S390 time steering via the PtP
  211. interface. This works by adding a in-kernel clock delta value,
  212. which is always added to time values used in the kernel. The PtP
  213. driver provides the raw clock value without the delta to
  214. userspace. That way userspace programs like chrony could steer
  215. the kernel clock.
  216. config PTP_NETC_V4_TIMER
  217. tristate "NXP NETC V4 Timer PTP Driver"
  218. depends on PTP_1588_CLOCK
  219. depends on PCI_MSI
  220. help
  221. This driver adds support for using the NXP NETC V4 Timer as a PTP
  222. clock, the clock is used by ENETC V4 or NETC V4 Switch for PTP time
  223. synchronization. It also supports periodic output signal (e.g. PPS)
  224. and external trigger timestamping.
  225. endmenu