xref: /linux-6.15/drivers/ptp/Kconfig (revision bad1eaa6)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# PTP clock support configuration
4#
5
6menu "PTP clock support"
7
8config PTP_1588_CLOCK
9	tristate "PTP clock support"
10	depends on NET && POSIX_TIMERS
11	select PPS
12	select NET_PTP_CLASSIFY
13	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
29config 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
45config 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
49	default y
50	help
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.
55
56	  To compile this driver as a module, choose M here: the module
57	  will be called ptp-qoriq.
58
59config PTP_1588_CLOCK_IXP46X
60	tristate "Intel IXP46x as PTP clock"
61	depends on IXP4XX_ETH
62	depends on PTP_1588_CLOCK
63	default y
64	help
65	  This driver adds support for using the IXP46X as a PTP
66	  clock. This clock is only useful if your PTP programs are
67	  getting hardware time stamps on the PTP Ethernet packets
68	  using the SO_TIMESTAMPING API.
69
70	  To compile this driver as a module, choose M here: the module
71	  will be called ptp_ixp46x.
72
73comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
74	depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n
75
76config DP83640_PHY
77	tristate "Driver for the National Semiconductor DP83640 PHYTER"
78	depends on NETWORK_PHY_TIMESTAMPING
79	depends on PHYLIB
80	depends on PTP_1588_CLOCK
81	---help---
82	  Supports the DP83640 PHYTER with IEEE 1588 features.
83
84	  This driver adds support for using the DP83640 as a PTP
85	  clock. This clock is only useful if your PTP programs are
86	  getting hardware time stamps on the PTP Ethernet packets
87	  using the SO_TIMESTAMPING API.
88
89	  In order for this to work, your MAC driver must also
90	  implement the skb_tx_timestamp() function.
91
92config PTP_1588_CLOCK_INES
93	tristate "ZHAW InES PTP time stamping IP core"
94	depends on NETWORK_PHY_TIMESTAMPING
95	depends on PHYLIB
96	depends on PTP_1588_CLOCK
97	help
98	  This driver adds support for using the ZHAW InES 1588 IP
99	  core.  This clock is only useful if the MII bus of your MAC
100	  is wired up to the core.
101
102config PTP_1588_CLOCK_PCH
103	tristate "Intel PCH EG20T as PTP clock"
104	depends on X86_32 || COMPILE_TEST
105	depends on HAS_IOMEM && NET
106	imply PTP_1588_CLOCK
107	help
108	  This driver adds support for using the PCH EG20T as a PTP
109	  clock. The hardware supports time stamping of PTP packets
110	  when using the end-to-end delay (E2E) mechanism. The peer
111	  delay mechanism (P2P) is not supported.
112
113	  This clock is only useful if your PTP programs are getting
114	  hardware time stamps on the PTP Ethernet packets using the
115	  SO_TIMESTAMPING API.
116
117	  To compile this driver as a module, choose M here: the module
118	  will be called ptp_pch.
119
120config PTP_1588_CLOCK_KVM
121	tristate "KVM virtual PTP clock"
122	depends on PTP_1588_CLOCK
123	depends on KVM_GUEST && X86
124	default y
125	help
126	  This driver adds support for using kvm infrastructure as a PTP
127	  clock. This clock is only useful if you are using KVM guests.
128
129	  To compile this driver as a module, choose M here: the module
130	  will be called ptp_kvm.
131
132config PTP_1588_CLOCK_IDTCM
133	tristate "IDT CLOCKMATRIX as PTP clock"
134	depends on PTP_1588_CLOCK && I2C
135	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
144endmenu
145