]> 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)
commitecff90622fe14cf0db9ba05b5becc38ec0de5407
tree7b30f621f6a22a45334606aea0365db4105f0bc0
parent9eb1c744c289d0103a8bc3ed23f9427308d3822a
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