Skip to content

Commit

Permalink
net: hns3: add support for Hisilicon ptp sync device
Browse files Browse the repository at this point in the history
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: Yonglong Liu <[email protected]>
Signed-off-by: hongrongxuan <[email protected]>
  • Loading branch information
liuyonglong86 authored and Avenger-285714 committed Nov 5, 2024
1 parent 50ac203 commit 63a8a37
Show file tree
Hide file tree
Showing 4 changed files with 1,044 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -9549,6 +9549,11 @@ S: Maintained
F: Documentation/ABI/testing/debugfs-hisi-zip
F: drivers/crypto/hisilicon/zip/

HISILICON HNS3 PTP SYNC DRIVER
M: Yonglong Liu <[email protected]>
S: Supported
F: drivers/ptp/ptp_hisi.c

HMM - Heterogeneous Memory Management
M: Jérôme Glisse <[email protected]>
L: [email protected]
Expand Down
11 changes: 11 additions & 0 deletions drivers/ptp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,15 @@ config PTP_DFL_TOD
To compile this driver as a module, choose M here: the module
will be called ptp_dfl_tod.

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 change: 1 addition & 0 deletions drivers/ptp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ obj-$(CONFIG_PTP_1588_CLOCK_MOCK) += ptp_mock.o
obj-$(CONFIG_PTP_1588_CLOCK_VMW) += ptp_vmw.o
obj-$(CONFIG_PTP_1588_CLOCK_OCP) += ptp_ocp.o
obj-$(CONFIG_PTP_DFL_TOD) += ptp_dfl_tod.o
obj-$(CONFIG_PTP_HISI) += ptp_hisi.o
Loading

0 comments on commit 63a8a37

Please sign in to comment.