Browse Source

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>
pull/86366/merge
Yangbo Lu 2 months ago committed by Benjamin Cabé
parent
commit
faa55bd44b
  1. 3
      drivers/ptp_clock/ptp_clock_nxp_enet.c

3
drivers/ptp_clock/ptp_clock_nxp_enet.c

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

Loading…
Cancel
Save