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:
Yangbo Lu 2025-05-19 10:57:27 +08:00 committed by Benjamin Cabé
commit 2da6257bec

View file

@ -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);
}
#ifdef CONFIG_PTP_CLOCK_NXP_ENET
ENET_TimeStampIRQHandler(data->base, &data->enet_handle);
#endif
irq_unlock(irq_lock_key);
}