drivers: ethernet: mcux: improve receive timestamp accuracy
When ENET_ENHANCEDBUFFERDESCRIPTOR_MODE enabled, MAC will automatic capture receive nanosecond from 1588TMR and return back to ENET_ReadFrame. It is a highest accuracy recv timestamp_ns, we do not need manually read from 1588TMR. By this change, receive timestamp accuracy increase from 20us to 200ns above. Signed-off-by: Chen Caidy <chen@caidy.cc>
This commit is contained in:
parent
5f9e698da4
commit
90b322761a
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ static int eth_rx(struct eth_context *context)
|
|||
ptpTimeData.second--;
|
||||
}
|
||||
|
||||
pkt->timestamp.nanosecond = ptpTimeData.nanosecond;
|
||||
pkt->timestamp.nanosecond = ts;
|
||||
pkt->timestamp.second = ptpTimeData.second;
|
||||
} else {
|
||||
/* Invalid value. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue