ptp: introduce programmable pins.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 20 Mar 2014 21:21:52 +0000 (22:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Mar 2014 18:21:13 +0000 (14:21 -0400)
commit6092315dfdec5185881605d15a0e200d6e90eb66
tree8b018970396a2e2380fe51ed14d2f860ce6010e1
parenta85ae0e97879f51bccd8511668b07d346d98b3eb
ptp: introduce programmable pins.

This patch adds a pair of new ioctls to the PTP Hardware Clock device
interface. Using the ioctls, user space programs can query each pin to
find out its current function and also reprogram a different function
if desired.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_chardev.c
drivers/ptp/ptp_clock.c
drivers/ptp/ptp_private.h
include/linux/ptp_clock_kernel.h
include/uapi/linux/ptp_clock.h