]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67f187e3c1fcd62363788072a9f90acdf54496ac
treeb371cc10993968f4467c567c68cfdd9eda44a40f
parentb26ccfc916a9fc8ee2f892cb26fba6aa6d1371c1
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