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:
parent
0e4a334f1c
commit
faa55bd44b
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue