1 # SPDX-License-Identifier: GPL-2.0-only
3 # PTP clock support configuration
6 menu "PTP clock support"
9 tristate "PTP clock support"
10 depends on NET && POSIX_TIMERS
12 select NET_PTP_CLASSIFY
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.
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.
26 To compile this driver as a module, choose M here: the module
29 config 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
36 This driver adds support for using the Digital timing engine
37 (DTE) in the Broadcom SoC's as a PTP clock.
39 The clock can be used in both wired and wireless networks
42 To compile this driver as a module, choose M here: the module
43 will be called ptp_dte.
45 config PTP_1588_CLOCK_QORIQ
46 tristate "Freescale QorIQ 1588 timer as PTP clock"
47 depends on GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST
48 depends on PTP_1588_CLOCK
51 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.
56 To compile this driver as a module, choose M here: the module
57 will be called ptp-qoriq.
59 comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
60 depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n
63 tristate "Driver for the National Semiconductor DP83640 PHYTER"
64 depends on NETWORK_PHY_TIMESTAMPING
66 depends on PTP_1588_CLOCK
68 Supports the DP83640 PHYTER with IEEE 1588 features.
70 This driver adds support for using the DP83640 as a PTP
71 clock. This clock is only useful if your PTP programs are
72 getting hardware time stamps on the PTP Ethernet packets
73 using the SO_TIMESTAMPING API.
75 In order for this to work, your MAC driver must also
76 implement the skb_tx_timestamp() function.
78 config PTP_1588_CLOCK_INES
79 tristate "ZHAW InES PTP time stamping IP core"
80 depends on NETWORK_PHY_TIMESTAMPING
82 depends on PTP_1588_CLOCK
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.
88 config PTP_1588_CLOCK_PCH
89 tristate "Intel PCH EG20T as PTP clock"
90 depends on X86_32 || COMPILE_TEST
91 depends on HAS_IOMEM && NET
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.
99 This clock is only useful if your PTP programs are getting
100 hardware time stamps on the PTP Ethernet packets using the
103 To compile this driver as a module, choose M here: the module
104 will be called ptp_pch.
106 config PTP_1588_CLOCK_KVM
107 tristate "KVM virtual PTP clock"
108 depends on PTP_1588_CLOCK
109 depends on KVM_GUEST && X86
112 This driver adds support for using kvm infrastructure as a PTP
113 clock. This clock is only useful if you are using KVM guests.
115 To compile this driver as a module, choose M here: the module
116 will be called ptp_kvm.
118 config PTP_1588_CLOCK_IDT82P33
119 tristate "IDT 82P33xxx PTP clock"
120 depends on PTP_1588_CLOCK && I2C
123 This driver adds support for using the IDT 82P33xxx as a PTP
124 clock. This clock is only useful if your time stamping MAC
125 is connected to the IDT chip.
127 To compile this driver as a module, choose M here: the module
128 will be called ptp_idt82p33.
130 config PTP_1588_CLOCK_IDTCM
131 tristate "IDT CLOCKMATRIX as PTP clock"
132 depends on PTP_1588_CLOCK && I2C
135 This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP
136 clock. This clock is only useful if your time stamping MAC
137 is connected to the IDT chip.
139 To compile this driver as a module, choose M here: the module
140 will be called ptp_clockmatrix.
142 config PTP_1588_CLOCK_VMW
143 tristate "VMware virtual PTP clock"
144 depends on ACPI && HYPERVISOR_GUEST && X86
145 depends on PTP_1588_CLOCK
147 This driver adds support for using VMware virtual precision
148 clock device as a PTP clock. This is only useful in virtual
149 machines running on VMware virtual infrastructure.
151 To compile this driver as a module, choose M here: the module
152 will be called ptp_vmw.