Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 2 | # |
| 3 | # PTP clock support configuration |
| 4 | # |
| 5 | |
| 6 | menu "PTP clock support" |
| 7 | |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 8 | config PTP_1588_CLOCK |
| 9 | tristate "PTP clock support" |
Nicolas Pitre | baa73d9 | 2016-11-11 00:10:10 -0500 | [diff] [blame] | 10 | depends on NET && POSIX_TIMERS |
Ben Hutchings | 42a7cce | 2012-10-31 15:32:44 +0000 | [diff] [blame] | 11 | select PPS |
Daniel Borkmann | 408eccc | 2014-04-01 16:20:23 +0200 | [diff] [blame] | 12 | select NET_PTP_CLASSIFY |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 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 | |
Arun Parameswaran | 8a56aa1 | 2017-06-12 13:26:01 -0700 | [diff] [blame] | 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 |
| 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 Lu | ceefc71d | 2018-05-25 12:40:34 +0800 | [diff] [blame] | 45 | config PTP_1588_CLOCK_QORIQ |
| 46 | tristate "Freescale QorIQ 1588 timer as PTP clock" |
Yangbo Lu | 8099d7c | 2019-06-14 18:40:50 +0800 | [diff] [blame] | 47 | depends on GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST |
Nicolas Pitre | d1cbfd7 | 2016-11-11 00:10:07 -0500 | [diff] [blame] | 48 | depends on PTP_1588_CLOCK |
Ben Hutchings | a24006e | 2012-10-31 15:33:52 +0000 | [diff] [blame] | 49 | default y |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 50 | help |
Yangbo Lu | ceefc71d | 2018-05-25 12:40:34 +0800 | [diff] [blame] | 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. |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 55 | |
| 56 | To compile this driver as a module, choose M here: the module |
Yangbo Lu | 19df751 | 2019-01-21 18:41:42 +0800 | [diff] [blame] | 57 | will be called ptp-qoriq. |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 58 | |
Richard Cochran | 32bd93e | 2011-04-22 12:04:31 +0200 | [diff] [blame] | 59 | config PTP_1588_CLOCK_IXP46X |
| 60 | tristate "Intel IXP46x as PTP clock" |
Richard Cochran | 32bd93e | 2011-04-22 12:04:31 +0200 | [diff] [blame] | 61 | depends on IXP4XX_ETH |
Nicolas Pitre | d1cbfd7 | 2016-11-11 00:10:07 -0500 | [diff] [blame] | 62 | depends on PTP_1588_CLOCK |
Ben Hutchings | a24006e | 2012-10-31 15:33:52 +0000 | [diff] [blame] | 63 | default y |
Richard Cochran | 32bd93e | 2011-04-22 12:04:31 +0200 | [diff] [blame] | 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 | |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 73 | comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks." |
Ben Hutchings | a24006e | 2012-10-31 15:33:52 +0000 | [diff] [blame] | 74 | depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 75 | |
| 76 | config DP83640_PHY |
| 77 | tristate "Driver for the National Semiconductor DP83640 PHYTER" |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 78 | depends on NETWORK_PHY_TIMESTAMPING |
| 79 | depends on PHYLIB |
Nicolas Pitre | d1cbfd7 | 2016-11-11 00:10:07 -0500 | [diff] [blame] | 80 | depends on PTP_1588_CLOCK |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 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 |
Masanari Iida | 6b2aac4 | 2012-04-14 00:14:11 +0900 | [diff] [blame] | 90 | implement the skb_tx_timestamp() function. |
Richard Cochran | cb646e2 | 2011-04-22 12:04:55 +0200 | [diff] [blame] | 91 | |
Takahiro Shimizu | 863d08e | 2012-03-07 22:16:26 +0000 | [diff] [blame] | 92 | config PTP_1588_CLOCK_PCH |
| 93 | tristate "Intel PCH EG20T as PTP clock" |
Jean Delvare | bc56151 | 2014-06-17 11:59:20 +0200 | [diff] [blame] | 94 | depends on X86_32 || COMPILE_TEST |
Randy Dunlap | 1a466ae | 2014-05-08 14:54:42 -0700 | [diff] [blame] | 95 | depends on HAS_IOMEM && NET |
Nicolas Pitre | d1cbfd7 | 2016-11-11 00:10:07 -0500 | [diff] [blame] | 96 | imply PTP_1588_CLOCK |
Takahiro Shimizu | 863d08e | 2012-03-07 22:16:26 +0000 | [diff] [blame] | 97 | help |
| 98 | This driver adds support for using the PCH EG20T as a PTP |
Takahiro Shimizu | 358dfb6 | 2012-04-20 18:50:34 +0000 | [diff] [blame] | 99 | clock. The hardware supports time stamping of PTP packets |
Antonio Borneo | 503c9ad | 2019-10-07 17:43:02 +0200 | [diff] [blame] | 100 | when using the end-to-end delay (E2E) mechanism. The peer |
| 101 | delay mechanism (P2P) is not supported. |
Takahiro Shimizu | 358dfb6 | 2012-04-20 18:50:34 +0000 | [diff] [blame] | 102 | |
| 103 | This clock is only useful if your PTP programs are getting |
| 104 | hardware time stamps on the PTP Ethernet packets using the |
| 105 | SO_TIMESTAMPING API. |
Takahiro Shimizu | 863d08e | 2012-03-07 22:16:26 +0000 | [diff] [blame] | 106 | |
| 107 | To compile this driver as a module, choose M here: the module |
| 108 | will be called ptp_pch. |
| 109 | |
Marcelo Tosatti | a0e136d | 2017-01-24 15:09:42 -0200 | [diff] [blame] | 110 | config PTP_1588_CLOCK_KVM |
| 111 | tristate "KVM virtual PTP clock" |
| 112 | depends on PTP_1588_CLOCK |
| 113 | depends on KVM_GUEST && X86 |
| 114 | default y |
| 115 | help |
| 116 | This driver adds support for using kvm infrastructure as a PTP |
| 117 | clock. This clock is only useful if you are using KVM guests. |
| 118 | |
| 119 | To compile this driver as a module, choose M here: the module |
| 120 | will be called ptp_kvm. |
| 121 | |
Richard Cochran | d94ba80 | 2011-04-22 12:03:08 +0200 | [diff] [blame] | 122 | endmenu |