]> 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)
commitfce88bd053728a52125182bcb771503bb3d7a59c
treeb371cc10993968f4467c567c68cfdd9eda44a40f
parent52e14fa4c598e370c2293322ef3b61bde94ab0e0
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