net: ti: prueth: dual_emac: Add support for timestamping tx packets
When PTP support is enabled in dual emac firmware, the firmware timestamps the ptp packets that are going out via prueth ports. The timestamp value is copied to a shared memory location. After timestamping, a host irq is raised by the firmware as a notification to read the timestamp. Add support for handling this ptp tx irq, read the tx timestamp and pass it to userspace layer. Signed-off-by:Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Vignesh Raghavendra <vigneshr@ti.com>
Showing
- drivers/net/ethernet/ti/prueth.h 6 additions, 0 deletionsdrivers/net/ethernet/ti/prueth.h
- drivers/net/ethernet/ti/prueth_core.c 243 additions, 11 deletionsdrivers/net/ethernet/ti/prueth_core.c
- drivers/net/ethernet/ti/prueth_ptp.h 82 additions, 0 deletionsdrivers/net/ethernet/ti/prueth_ptp.h
- include/linux/ptp_classify.h 12 additions, 0 deletionsinclude/linux/ptp_classify.h
drivers/net/ethernet/ti/prueth_ptp.h
0 → 100644
Please register or sign in to comment