net: dsa: mv88e6xxx: Abstract HW timestamp setup
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Jul 2018 20:38:23 +0000 (22:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 22:05:38 +0000 (15:05 -0700)
commitffc705de86e28e7a6e6f8d2e0be73c4181b37b4b
treeb371cc10993968f4467c567c68cfdd9eda44a40f
parentdfa543481034ef57cba55585e35eead113f50030
net: dsa: mv88e6xxx: Abstract HW timestamp setup

The 6165 family does not have per port PTP control registers. Also, it
places the timestamp data in different registers. Abstract the current
implementation of 6352 compatible PTP devices so that 6165 can be
added.

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.h
drivers/net/dsa/mv88e6xxx/hwtstamp.c
drivers/net/dsa/mv88e6xxx/hwtstamp.h
drivers/net/dsa/mv88e6xxx/ptp.c