drivers: ptp_clock_nxp_enet: avoid configuring IRQ handlers again

Converted ENET_Ptp1588Configure to ENET_Ptp1588StartTimer during reset.
This is to avoid configuring IRQ handlers again in hal driver with
ENET_Ptp1588Configure.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
This commit is contained in:
Yangbo Lu 2025-04-29 09:49:39 +08:00 committed by Benjamin Cabé
commit faa55bd44b

View file

@ -179,8 +179,7 @@ void nxp_enet_ptp_clock_callback(const struct device *dev,
ENET_Ptp1588SetChannelMode(data->base, kENET_PtpTimerChannel3,
kENET_PtpChannelPulseHighonCompare, true);
ENET_Ptp1588Configure(data->base, data->enet_handle,
&ptp_config);
ENET_Ptp1588StartTimer(data->base, ptp_config.ptp1588ClockSrc_Hz);
}
}