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)
commit5d43f951b1ac797450bb4d230fdc960b739bea04
tree7e4ef8c7ca741fecd668e94f122543f34284ca61
parent88827353c696defc40de7a5cdae5a5a084598fe2
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