net: dsa: mv88e6xxx: Add mv88e6165 PTP support
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Jul 2018 20:38:22 +0000 (22:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 22:05:38 +0000 (15:05 -0700)
commitdfa543481034ef57cba55585e35eead113f50030
tree893dd93f99cb34724d58ffe96f29ed7bce78ac2a
parenta469a61231e5f67de4289f2a7889f0665528b13b
net: dsa: mv88e6xxx: Add mv88e6165 PTP support

The mv88e6165 family has its global clock in the PTP global
registers. It does not support any form of PTP events. Add a function
to read the clock, fill in an ops structure, and register it with the
two members of the family.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/ptp.c
drivers/net/dsa/mv88e6xxx/ptp.h