blob: f2edef0df40f5cebd5e650cfefe5cac046884838 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Richard Cochrand94ba802011-04-22 12:03:08 +02002#
3# PTP clock support configuration
4#
5
6menu "PTP clock support"
7
Richard Cochrand94ba802011-04-22 12:03:08 +02008config PTP_1588_CLOCK
9 tristate "PTP clock support"
Nicolas Pitrebaa73d92016-11-11 00:10:10 -050010 depends on NET && POSIX_TIMERS
Ben Hutchings42a7cce2012-10-31 15:32:44 +000011 select PPS
Daniel Borkmann408eccc2014-04-01 16:20:23 +020012 select NET_PTP_CLASSIFY
Richard Cochrand94ba802011-04-22 12:03:08 +020013 help
14 The IEEE 1588 standard defines a method to precisely
15 synchronize distributed clocks over Ethernet networks. The
16 standard defines a Precision Time Protocol (PTP), which can
17 be used to achieve synchronization within a few dozen
18 microseconds. In addition, with the help of special hardware
19 time stamping units, it can be possible to achieve
20 synchronization to within a few hundred nanoseconds.
21
22 This driver adds support for PTP clocks as character
23 devices. If you want to use a PTP clock, then you should
24 also enable at least one clock driver as well.
25
26 To compile this driver as a module, choose M here: the module
27 will be called ptp.
28
Arun Parameswaran8a56aa12017-06-12 13:26:01 -070029config PTP_1588_CLOCK_DTE
30 tristate "Broadcom DTE as PTP clock"
31 depends on PTP_1588_CLOCK
32 depends on NET && HAS_IOMEM
33 depends on ARCH_BCM_MOBILE || (ARCH_BCM_IPROC && !(ARCH_BCM_NSP || ARCH_BCM_5301X)) || COMPILE_TEST
34 default y
35 help
36 This driver adds support for using the Digital timing engine
37 (DTE) in the Broadcom SoC's as a PTP clock.
38
39 The clock can be used in both wired and wireless networks
40 for PTP purposes.
41
42 To compile this driver as a module, choose M here: the module
43 will be called ptp_dte.
44
Yangbo Luceefc71d2018-05-25 12:40:34 +080045config PTP_1588_CLOCK_QORIQ
46 tristate "Freescale QorIQ 1588 timer as PTP clock"
Yangbo Lu8099d7c2019-06-14 18:40:50 +080047 depends on GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST
Nicolas Pitred1cbfd72016-11-11 00:10:07 -050048 depends on PTP_1588_CLOCK
Ben Hutchingsa24006e2012-10-31 15:33:52 +000049 default y
Richard Cochranc78275f2011-04-22 12:03:54 +020050 help
Yangbo Luceefc71d2018-05-25 12:40:34 +080051 This driver adds support for using the Freescale QorIQ 1588
52 timer as a PTP clock. This clock is only useful if your PTP
53 programs are getting hardware time stamps on the PTP Ethernet
54 packets using the SO_TIMESTAMPING API.
Richard Cochranc78275f2011-04-22 12:03:54 +020055
56 To compile this driver as a module, choose M here: the module
Yangbo Lu19df7512019-01-21 18:41:42 +080057 will be called ptp-qoriq.
Richard Cochranc78275f2011-04-22 12:03:54 +020058
Richard Cochrancb646e22011-04-22 12:04:55 +020059comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
Ben Hutchingsa24006e2012-10-31 15:33:52 +000060 depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n
Richard Cochrancb646e22011-04-22 12:04:55 +020061
62config DP83640_PHY
63 tristate "Driver for the National Semiconductor DP83640 PHYTER"
Richard Cochrancb646e22011-04-22 12:04:55 +020064 depends on NETWORK_PHY_TIMESTAMPING
65 depends on PHYLIB
Nicolas Pitred1cbfd72016-11-11 00:10:07 -050066 depends on PTP_1588_CLOCK
Arnd Bergmannf9d6f942021-01-03 22:36:18 +010067 select CRC32
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090068 help
Richard Cochrancb646e22011-04-22 12:04:55 +020069 Supports the DP83640 PHYTER with IEEE 1588 features.
70
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
76 In order for this to work, your MAC driver must also
Masanari Iida6b2aac42012-04-14 00:14:11 +090077 implement the skb_tx_timestamp() function.
Richard Cochrancb646e22011-04-22 12:04:55 +020078
Richard Cochranbad1eaa2019-12-25 18:16:20 -080079config PTP_1588_CLOCK_INES
80 tristate "ZHAW InES PTP time stamping IP core"
81 depends on NETWORK_PHY_TIMESTAMPING
Randy Dunlap1f685e62021-01-05 20:25:31 -080082 depends on HAS_IOMEM
Richard Cochranbad1eaa2019-12-25 18:16:20 -080083 depends on PHYLIB
84 depends on PTP_1588_CLOCK
85 help
86 This driver adds support for using the ZHAW InES 1588 IP
87 core. This clock is only useful if the MII bus of your MAC
88 is wired up to the core.
89
Takahiro Shimizu863d08e2012-03-07 22:16:26 +000090config PTP_1588_CLOCK_PCH
91 tristate "Intel PCH EG20T as PTP clock"
Jean Delvarebc561512014-06-17 11:59:20 +020092 depends on X86_32 || COMPILE_TEST
Randy Dunlap1a466ae2014-05-08 14:54:42 -070093 depends on HAS_IOMEM && NET
Nicolas Pitred1cbfd72016-11-11 00:10:07 -050094 imply PTP_1588_CLOCK
Takahiro Shimizu863d08e2012-03-07 22:16:26 +000095 help
96 This driver adds support for using the PCH EG20T as a PTP
Takahiro Shimizu358dfb62012-04-20 18:50:34 +000097 clock. The hardware supports time stamping of PTP packets
Antonio Borneo503c9ad2019-10-07 17:43:02 +020098 when using the end-to-end delay (E2E) mechanism. The peer
99 delay mechanism (P2P) is not supported.
Takahiro Shimizu358dfb62012-04-20 18:50:34 +0000100
101 This clock is only useful if your PTP programs are getting
102 hardware time stamps on the PTP Ethernet packets using the
103 SO_TIMESTAMPING API.
Takahiro Shimizu863d08e2012-03-07 22:16:26 +0000104
105 To compile this driver as a module, choose M here: the module
106 will be called ptp_pch.
107
Marcelo Tosattia0e136d2017-01-24 15:09:42 -0200108config PTP_1588_CLOCK_KVM
109 tristate "KVM virtual PTP clock"
110 depends on PTP_1588_CLOCK
111 depends on KVM_GUEST && X86
112 default y
113 help
114 This driver adds support for using kvm infrastructure as a PTP
115 clock. This clock is only useful if you are using KVM guests.
116
117 To compile this driver as a module, choose M here: the module
118 will be called ptp_kvm.
119
Min Li57a10d82020-02-21 15:03:51 -0500120config PTP_1588_CLOCK_IDT82P33
121 tristate "IDT 82P33xxx PTP clock"
122 depends on PTP_1588_CLOCK && I2C
123 default n
124 help
125 This driver adds support for using the IDT 82P33xxx as a PTP
126 clock. This clock is only useful if your time stamping MAC
127 is connected to the IDT chip.
128
129 To compile this driver as a module, choose M here: the module
130 will be called ptp_idt82p33.
131
Vincent Cheng3a6ba7d2019-10-31 23:20:07 -0400132config PTP_1588_CLOCK_IDTCM
133 tristate "IDT CLOCKMATRIX as PTP clock"
Arnd Bergmann03b06e32019-12-10 20:56:34 +0100134 depends on PTP_1588_CLOCK && I2C
Vincent Cheng3a6ba7d2019-10-31 23:20:07 -0400135 default n
136 help
137 This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP
138 clock. This clock is only useful if your time stamping MAC
139 is connected to the IDT chip.
140
141 To compile this driver as a module, choose M here: the module
142 will be called ptp_clockmatrix.
143
Vivek Thampi7d100012020-02-28 05:32:46 +0000144config PTP_1588_CLOCK_VMW
145 tristate "VMware virtual PTP clock"
146 depends on ACPI && HYPERVISOR_GUEST && X86
147 depends on PTP_1588_CLOCK
148 help
149 This driver adds support for using VMware virtual precision
150 clock device as a PTP clock. This is only useful in virtual
151 machines running on VMware virtual infrastructure.
152
153 To compile this driver as a module, choose M here: the module
154 will be called ptp_vmw.
155
Jonathan Lemona7e1aba2020-12-03 19:51:28 -0800156config PTP_1588_CLOCK_OCP
157 tristate "OpenCompute TimeCard as PTP clock"
158 depends on PTP_1588_CLOCK
159 depends on HAS_IOMEM && PCI
160 default n
161 help
162 This driver adds support for an OpenCompute time card.
163
164 The OpenCompute time card is an atomic clock along with
165 a GPS receiver that provides a Grandmaster clock source
166 for a PTP enabled network.
167
168 More information is available at http://www.timingcard.com/
169
Richard Cochrand94ba802011-04-22 12:03:08 +0200170endmenu