net: ethernet: ti: am65-cpts: Enable RX HW timestamp for PTP packets using CPTS FIFO
authorChintan Vankar <c-vankar@ti.com>
Fri, 19 Apr 2024 08:26:25 +0000 (13:56 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Apr 2024 10:07:23 +0000 (12:07 +0200)
commitc459f606f66dfdb14aef5a7927c2f4b274682fee
tree26a1501a49b19a9bbd42b4f95ef1f1506f3ab8f9
parent9b9fd023e9c503cf63067ecd33336f575bc79c67
net: ethernet: ti: am65-cpts: Enable RX HW timestamp for PTP packets using CPTS FIFO

Add a new function "am65_cpts_rx_timestamp()" which checks for PTP
packets from header and timestamps them.

Add another function "am65_cpts_find_rx_ts()" which finds CPTS FIFO
Event to get the timestamp of received PTP packet.

Signed-off-by: Chintan Vankar <c-vankar@ti.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/am65-cpts.c
drivers/net/ethernet/ti/am65-cpts.h