Commit c64545e1 authored by Yonglong Liu's avatar Yonglong Liu Committed by Jiantao Xiao
Browse files

net: hns3: add support for Hisilicon ptp sync device

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I78MGV


CVE: NA

----------------------------------------------------------------------

The hns3 driver provide ptp driver to get 1588 clock from
ethernet, but only the first PF on main chip can support this,
so, if getting ptp time from other chip, may have some bus
latency. The PTP sync device use to eliminate the bus latency.

Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
parent 1f7abdfd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8065,6 +8065,11 @@ S: Maintained
W:	http://www.hisilicon.com
F:	drivers/spi/spi-hisi-sfc-v3xx.c
HISILICON HNS3 PTP SYNC DRIVER
M:	Yonglong Liu <liuyonglong@huawei.com>
S:	Supported
F:	drivers/ptp/ptp_hisi.c
HMM - Heterogeneous Memory Management
M:	Jérôme Glisse <jglisse@redhat.com>
L:	linux-mm@kvack.org
+1 −0
Original line number Diff line number Diff line
@@ -3612,6 +3612,7 @@ CONFIG_DP83640_PHY=m
# CONFIG_PTP_1588_CLOCK_INES is not set
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
CONFIG_PTP_HISI=m
# end of PTP clock support

CONFIG_PINCTRL=y
+11 −0
Original line number Diff line number Diff line
@@ -154,4 +154,15 @@ config PTP_1588_CLOCK_VMW
	  To compile this driver as a module, choose M here: the module
	  will be called ptp_vmw.

config PTP_HISI
	tristate "HiSilicon PTP sync platform driver"
	help
	  PTP sync driver work on multichip system, eliminates the bus latency
	  between multichip, and provide a higher precision clock source. But
	  the clock source of PTP sync device is from the RTC of HNS3 ethernet
	  device, so, if you want the PTP sync device works, you must enable
	  HNS3 driver also.

	  If unsure, say N.

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -15,3 +15,4 @@ ptp-qoriq-$(CONFIG_DEBUG_FS) += ptp_qoriq_debugfs.o
obj-$(CONFIG_PTP_1588_CLOCK_IDTCM)	+= ptp_clockmatrix.o
obj-$(CONFIG_PTP_1588_CLOCK_IDT82P33)	+= ptp_idt82p33.o
obj-$(CONFIG_PTP_1588_CLOCK_VMW)	+= ptp_vmw.o
obj-$(CONFIG_PTP_HISI)		+= ptp_hisi.o

drivers/ptp/ptp_hisi.c

0 → 100644
+1027 −0

File added.

Preview size limit exceeded, changes collapsed.