]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: add ptp virtual clock driver framework
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 30 Jun 2021 08:11:52 +0000 (16:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:08:18 +0000 (13:08 -0700)
commit30e9b330567b0bb702c17604b8a661c7e33e4cb0
tree7e4ef8c7ca741fecd668e94f122543f34284ca61
parentc075f7fe71c0269b11d6038200a1e34c6bc55049
ptp: add ptp virtual clock driver framework

This patch is to add ptp virtual clock driver framework
utilizing timecounter/cyclecounter.

The patch just exports two essential APIs for PTP driver.

- ptp_vclock_register()
- ptp_vclock_unregister()

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/Makefile
drivers/ptp/ptp_private.h
drivers/ptp/ptp_vclock.c [new file with mode: 0644]
include/linux/ptp_clock_kernel.h