This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM:get hw -timestamp from packets

Other Parts Discussed in Thread: TDA4VM

I have a board of TDA4VM.

eth0 is the TSN network.

Only ptp packets can get hw-timestamp.

I want to get hw-timestamp from all packets.

ret = devm_request_threaded_irq(dev, cpts->irq, NULL,
                    am65_cpts_interrupt,
                    IRQF_ONESHOT, dev_name(dev), cpts);

I don't know how to generate the irq?

  • The host can send a packet to be transmitted on an Ethernet port that will generate a time synchronization
    event. The host sets the TSTAMP_EN bit and sends the DOMAIN, MESSAGE_TYPE, and SEQUENCE_ID in
    the additional control information that resides in the protocol specific section of the descriptor that is transmitted
    to the CPSW_2G. An event is then generated and placed on the event FIFO once the packet is transmitted. Host
    events allow the user to timestamp exactly when a software generated packet exits the device.