]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: Add support for PTP_PF_EXTTS
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 27 Apr 2022 06:51:27 +0000 (08:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2022 11:03:18 +0000 (12:03 +0100)
commitae9384ec1cee40ece4db0c666c208c40eb313eb9
tree7b30f621f6a22a45334606aea0365db4105f0bc0
parenta908831a8057582b563cc052253492a9ae13c8b7
net: lan966x: Add support for PTP_PF_EXTTS

Extend the PTP programmable pins to implement also PTP_PF_EXTTS
function. The PTP pin can be configured to capture only on the rising
edge of the PPS signal. And once an event is seen then an interrupt is
generated and the local time counter is saved.
The interrupt is shared between all the pins.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
drivers/net/ethernet/microchip/lan966x/lan966x_main.h
drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c