Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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 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_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_FC3W
  134. tristate "RENESAS FemtoClock3 Wireless as PTP clock"
  135. depends on PTP_1588_CLOCK && I2C
  136. default n
  137. help
  138. This driver adds support for using Renesas FemtoClock3 Wireless
  139. as a PTP clock. This clock is only useful if your time stamping
  140. MAC is connected to the RENESAS chip.
  141. To compile this driver as a module, choose M here: the module
  142. will be called ptp_fc3.
  143. config PTP_1588_CLOCK_MOCK
  144. tristate "Mock-up PTP clock"
  145. depends on PTP_1588_CLOCK
  146. help
  147. This driver offers a set of PTP clock manipulation operations over
  148. the system monotonic time. It can be used by virtual network device
  149. drivers to emulate PTP capabilities.
  150. To compile this driver as a module, choose M here: the module
  151. will be called ptp_mock.
  152. config PTP_1588_CLOCK_VMW
  153. tristate "VMware virtual PTP clock"
  154. depends on ACPI && HYPERVISOR_GUEST && X86
  155. depends on PTP_1588_CLOCK
  156. help
  157. This driver adds support for using VMware virtual precision
  158. clock device as a PTP clock. This is only useful in virtual
  159. machines running on VMware virtual infrastructure.
  160. To compile this driver as a module, choose M here: the module
  161. will be called ptp_vmw.
  162. config PTP_1588_CLOCK_OCP
  163. tristate "OpenCompute TimeCard as PTP clock"
  164. depends on PTP_1588_CLOCK
  165. depends on HAS_IOMEM && PCI
  166. depends on I2C && MTD
  167. depends on SERIAL_8250
  168. depends on !S390
  169. depends on COMMON_CLK
  170. select NET_DEVLINK
  171. select CRC16
  172. select DPLL
  173. help
  174. This driver adds support for an OpenCompute time card.
  175. The OpenCompute time card is an atomic clock along with
  176. a GPS receiver that provides a Grandmaster clock source
  177. for a PTP enabled network.
  178. More information is available at http://www.timingcard.com/
  179. config PTP_DFL_TOD
  180. tristate "FPGA DFL ToD Driver"
  181. depends on FPGA_DFL
  182. depends on PTP_1588_CLOCK
  183. help
  184. The DFL (Device Feature List) device driver for the Intel ToD
  185. (Time-of-Day) device in FPGA card. The ToD IP within the FPGA
  186. is exposed as PTP Hardware Clock (PHC) device to the Linux PTP
  187. stack to synchronize the system clock to its ToD information
  188. using phc2sys utility of the Linux PTP stack.
  189. To compile this driver as a module, choose M here: the module
  190. will be called ptp_dfl_tod.
  191. endmenu