net: lan743x: Add support for PTP-IO Event Input External Timestamp (extts)
authorRaju Lakkaraju <Raju.Lakkaraju@microchip.com>
Thu, 17 Mar 2022 10:43:09 +0000 (16:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2022 12:53:23 +0000 (12:53 +0000)
commit60942c397af6094c04406b77982314dfe69ef3c4
treeb05eb596d972ce9423129047b48ae87c01ee8c54
parentd808f7ca8d23e3a69bed00317def7b85fbb74584
net: lan743x: Add support for PTP-IO Event Input External Timestamp (extts)

PTP-IOs block provides for time stamping PTP-IO input events.
PTP-IOs are numbered from 0 to 11.
When a PTP-IO is enabled by the corresponding bit in the PTP-IO
Capture Configuration Register, a rising or falling edge,
respectively, will capture the 1588 Local Time Counter

Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.h
drivers/net/ethernet/microchip/lan743x_ptp.c
drivers/net/ethernet/microchip/lan743x_ptp.h