net: dsa: mv88e6xxx: expose switch time as a PTP hardware clock
authorBrandon Streiff <brandon.streiff@ni.com>
Wed, 14 Feb 2018 00:07:45 +0000 (01:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2018 19:33:36 +0000 (14:33 -0500)
commit2fa8d3af4badc40a39092140a01101119988faf6
treefbf8e5e99514e423f57031c2029d935b948139d6
parent0d632c3d6fe3b909fa481ddd51b5cb76ad18f921
net: dsa: mv88e6xxx: expose switch time as a PTP hardware clock

This patch adds basic support for exposing the 32-bit timestamp counter
inside the mv88e6xxx switch as a ptp_clock.

Adjfine implemented by Richard Cochran.
Andrew Lunn: fix return value of PTP stub function.

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/Kconfig
drivers/net/dsa/mv88e6xxx/Makefile
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/ptp.c [new file with mode: 0644]
drivers/net/dsa/mv88e6xxx/ptp.h [new file with mode: 0644]