blob: 6963bdf5417593921122694d8ae425ff7a599f7e [file] [log] [blame]
Richard Cochrand94ba802011-04-22 12:03:08 +02001#
2# PTP clock support configuration
3#
4
5menu "PTP clock support"
6
Richard Cochrand94ba802011-04-22 12:03:08 +02007config PTP_1588_CLOCK
8 tristate "PTP clock support"
Ben Hutchings42a7cce2012-10-31 15:32:44 +00009 select PPS
Daniel Borkmann408eccc2014-04-01 16:20:23 +020010 select NET_PTP_CLASSIFY
Richard Cochrand94ba802011-04-22 12:03:08 +020011 help
12 The IEEE 1588 standard defines a method to precisely
13 synchronize distributed clocks over Ethernet networks. The
14 standard defines a Precision Time Protocol (PTP), which can
15 be used to achieve synchronization within a few dozen
16 microseconds. In addition, with the help of special hardware
17 time stamping units, it can be possible to achieve
18 synchronization to within a few hundred nanoseconds.
19
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
24 To compile this driver as a module, choose M here: the module
25 will be called ptp.
26
Richard Cochranc78275f2011-04-22 12:03:54 +020027config PTP_1588_CLOCK_GIANFAR
28 tristate "Freescale eTSEC as PTP clock"
Richard Cochranc78275f2011-04-22 12:03:54 +020029 depends on GIANFAR
Ben Hutchingsa24006e2012-10-31 15:33:52 +000030 select PTP_1588_CLOCK
31 default y
Richard Cochranc78275f2011-04-22 12:03:54 +020032 help
33 This driver adds support for using the eTSEC as a PTP
34 clock. This clock is only useful if your PTP programs are
35 getting hardware time stamps on the PTP Ethernet packets
36 using the SO_TIMESTAMPING API.
37
38 To compile this driver as a module, choose M here: the module
39 will be called gianfar_ptp.
40
Richard Cochran32bd93e2011-04-22 12:04:31 +020041config PTP_1588_CLOCK_IXP46X
42 tristate "Intel IXP46x as PTP clock"
Richard Cochran32bd93e2011-04-22 12:04:31 +020043 depends on IXP4XX_ETH
Ben Hutchingsa24006e2012-10-31 15:33:52 +000044 select PTP_1588_CLOCK
45 default y
Richard Cochran32bd93e2011-04-22 12:04:31 +020046 help
47 This driver adds support for using the IXP46X as a PTP
48 clock. This clock is only useful if your PTP programs are
49 getting hardware time stamps on the PTP Ethernet packets
50 using the SO_TIMESTAMPING API.
51
52 To compile this driver as a module, choose M here: the module
53 will be called ptp_ixp46x.
54
Richard Cochrancb646e22011-04-22 12:04:55 +020055comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
Ben Hutchingsa24006e2012-10-31 15:33:52 +000056 depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n
Richard Cochrancb646e22011-04-22 12:04:55 +020057
58config DP83640_PHY
59 tristate "Driver for the National Semiconductor DP83640 PHYTER"
Richard Cochrancb646e22011-04-22 12:04:55 +020060 depends on NETWORK_PHY_TIMESTAMPING
61 depends on PHYLIB
Ben Hutchingsa24006e2012-10-31 15:33:52 +000062 select PTP_1588_CLOCK
Richard Cochrancb646e22011-04-22 12:04:55 +020063 ---help---
64 Supports the DP83640 PHYTER with IEEE 1588 features.
65
66 This driver adds support for using the DP83640 as a PTP
67 clock. This clock is only useful if your PTP programs are
68 getting hardware time stamps on the PTP Ethernet packets
69 using the SO_TIMESTAMPING API.
70
71 In order for this to work, your MAC driver must also
Masanari Iida6b2aac42012-04-14 00:14:11 +090072 implement the skb_tx_timestamp() function.
Richard Cochrancb646e22011-04-22 12:04:55 +020073
Takahiro Shimizu863d08e2012-03-07 22:16:26 +000074config PTP_1588_CLOCK_PCH
75 tristate "Intel PCH EG20T as PTP clock"
Jiri Slaby4bb16672013-05-22 10:56:24 +020076 depends on X86 || COMPILE_TEST
Richard Weinbergerc361f1a2014-01-14 16:45:39 +010077 depends on HAS_IOMEM
Ben Hutchingsa24006e2012-10-31 15:33:52 +000078 select PTP_1588_CLOCK
Takahiro Shimizu863d08e2012-03-07 22:16:26 +000079 help
80 This driver adds support for using the PCH EG20T as a PTP
Takahiro Shimizu358dfb62012-04-20 18:50:34 +000081 clock. The hardware supports time stamping of PTP packets
82 when using the end-to-end delay (E2E) mechansim. The peer
83 delay mechansim (P2P) is not supported.
84
85 This clock is only useful if your PTP programs are getting
86 hardware time stamps on the PTP Ethernet packets using the
87 SO_TIMESTAMPING API.
Takahiro Shimizu863d08e2012-03-07 22:16:26 +000088
89 To compile this driver as a module, choose M here: the module
90 will be called ptp_pch.
91
Richard Cochrand94ba802011-04-22 12:03:08 +020092endmenu