forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/ptp/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # PTP clock support configuration
34 #
....@@ -43,7 +44,7 @@
4344
4445 config PTP_1588_CLOCK_QORIQ
4546 tristate "Freescale QorIQ 1588 timer as PTP clock"
46
- depends on GIANFAR || FSL_DPAA_ETH
47
+ depends on GIANFAR || FSL_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST
4748 depends on PTP_1588_CLOCK
4849 default y
4950 help
....@@ -53,21 +54,7 @@
5354 packets using the SO_TIMESTAMPING API.
5455
5556 To compile this driver as a module, choose M here: the module
56
- will be called ptp_qoriq.
57
-
58
-config PTP_1588_CLOCK_IXP46X
59
- tristate "Intel IXP46x as PTP clock"
60
- depends on IXP4XX_ETH
61
- depends on PTP_1588_CLOCK
62
- default y
63
- help
64
- This driver adds support for using the IXP46X as a PTP
65
- clock. This clock is only useful if your PTP programs are
66
- getting hardware time stamps on the PTP Ethernet packets
67
- using the SO_TIMESTAMPING API.
68
-
69
- To compile this driver as a module, choose M here: the module
70
- will be called ptp_ixp46x.
57
+ will be called ptp-qoriq.
7158
7259 comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks."
7360 depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n
....@@ -77,7 +64,8 @@
7764 depends on NETWORK_PHY_TIMESTAMPING
7865 depends on PHYLIB
7966 depends on PTP_1588_CLOCK
80
- ---help---
67
+ select CRC32
68
+ help
8169 Supports the DP83640 PHYTER with IEEE 1588 features.
8270
8371 This driver adds support for using the DP83640 as a PTP
....@@ -88,6 +76,17 @@
8876 In order for this to work, your MAC driver must also
8977 implement the skb_tx_timestamp() function.
9078
79
+config PTP_1588_CLOCK_INES
80
+ tristate "ZHAW InES PTP time stamping IP core"
81
+ depends on NETWORK_PHY_TIMESTAMPING
82
+ depends on HAS_IOMEM
83
+ 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
+
9190 config PTP_1588_CLOCK_PCH
9291 tristate "Intel PCH EG20T as PTP clock"
9392 depends on X86_32 || COMPILE_TEST
....@@ -97,8 +96,8 @@
9796 help
9897 This driver adds support for using the PCH EG20T as a PTP
9998 clock. The hardware supports time stamping of PTP packets
100
- when using the end-to-end delay (E2E) mechansim. The peer
101
- delay mechansim (P2P) is not supported.
99
+ when using the end-to-end delay (E2E) mechanism. The peer
100
+ delay mechanism (P2P) is not supported.
102101
103102 This clock is only useful if your PTP programs are getting
104103 hardware time stamps on the PTP Ethernet packets using the
....@@ -119,4 +118,40 @@
119118 To compile this driver as a module, choose M here: the module
120119 will be called ptp_kvm.
121120
121
+config PTP_1588_CLOCK_IDT82P33
122
+ tristate "IDT 82P33xxx PTP clock"
123
+ depends on PTP_1588_CLOCK && I2C
124
+ default n
125
+ help
126
+ This driver adds support for using the IDT 82P33xxx as a PTP
127
+ clock. This clock is only useful if your time stamping MAC
128
+ is connected to the IDT chip.
129
+
130
+ To compile this driver as a module, choose M here: the module
131
+ will be called ptp_idt82p33.
132
+
133
+config PTP_1588_CLOCK_IDTCM
134
+ tristate "IDT CLOCKMATRIX as PTP clock"
135
+ depends on PTP_1588_CLOCK && I2C
136
+ default n
137
+ help
138
+ This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP
139
+ clock. This clock is only useful if your time stamping MAC
140
+ is connected to the IDT chip.
141
+
142
+ To compile this driver as a module, choose M here: the module
143
+ will be called ptp_clockmatrix.
144
+
145
+config PTP_1588_CLOCK_VMW
146
+ tristate "VMware virtual PTP clock"
147
+ depends on ACPI && HYPERVISOR_GUEST && X86
148
+ depends on PTP_1588_CLOCK
149
+ help
150
+ This driver adds support for using VMware virtual precision
151
+ clock device as a PTP clock. This is only useful in virtual
152
+ machines running on VMware virtual infrastructure.
153
+
154
+ To compile this driver as a module, choose M here: the module
155
+ will be called ptp_vmw.
156
+
122157 endmenu