ptp: Added a brand new class driver for ptp clocks.
commitd94ba80ebbea17f036cecb104398fbcd788aa742
authorRichard Cochran <richardcochran@gmail.com>
Fri, 22 Apr 2011 10:03:08 +0000 (22 12:03 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 23 May 2011 20:01:00 +0000 (23 13:01 -0700)
tree7fe40228c5ea2bb77f2892b722d27155df8c1157
parentcaebc160ce3f76761cc62ad96ef6d6f30f54e3dd
ptp: Added a brand new class driver for ptp clocks.

This patch adds an infrastructure for hardware clocks that implement
IEEE 1588, the Precision Time Protocol (PTP). A class driver offers a
registration method to particular hardware clock drivers. Each clock is
presented as a standard POSIX clock.

The ancillary clock features are exposed in two different ways, via
the sysfs and by a character device.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: John Stultz <john.stultz@linaro.org>
16 files changed:
Documentation/ABI/testing/sysfs-ptp [new file with mode: 0644]
Documentation/ptp/ptp.txt [new file with mode: 0644]
Documentation/ptp/testptp.c [new file with mode: 0644]
Documentation/ptp/testptp.mk [new file with mode: 0644]
drivers/Kconfig
drivers/Makefile
drivers/ptp/Kconfig [new file with mode: 0644]
drivers/ptp/Makefile [new file with mode: 0644]
drivers/ptp/ptp_chardev.c [new file with mode: 0644]
drivers/ptp/ptp_clock.c [new file with mode: 0644]
drivers/ptp/ptp_private.h [new file with mode: 0644]
drivers/ptp/ptp_sysfs.c [new file with mode: 0644]
include/linux/Kbuild
include/linux/ptp_classify.h
include/linux/ptp_clock.h [new file with mode: 0644]
include/linux/ptp_clock_kernel.h [new file with mode: 0644]