drivers: eth_nxp_enet: support handling ENET timestamp events
The ENET timestamp events may be via ENET IRQ rather than ENET timer IRQ handled in ptp driver for some platforms like i.MX RT1060. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
This commit is contained in:
parent
e0417c7a36
commit
2da6257bec
1 changed files with 3 additions and 0 deletions
|
@ -627,6 +627,9 @@ static void eth_nxp_enet_isr(const struct device *dev)
|
||||||
nxp_enet_driver_cb(config->mdio, NXP_ENET_MDIO, NXP_ENET_INTERRUPT, NULL);
|
nxp_enet_driver_cb(config->mdio, NXP_ENET_MDIO, NXP_ENET_INTERRUPT, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PTP_CLOCK_NXP_ENET
|
||||||
|
ENET_TimeStampIRQHandler(data->base, &data->enet_handle);
|
||||||
|
#endif
|
||||||
irq_unlock(irq_lock_key);
|
irq_unlock(irq_lock_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue