Merge branch 'fix/fix_mpll_cali_flow_s31' into 'master'

mpll: improved mpll calibration flow on s31

See merge request espressif/esp-idf!51928
This commit is contained in:
Armando (Dou Yiwen)
2026-08-25 02:48:14 +00:00
4 changed files with 68 additions and 26 deletions
@@ -657,13 +657,8 @@ void rtc_clk_mpll_configure(uint32_t xtal_freq, uint32_t mpll_freq, bool thread_
} else {
ANALOG_CLOCK_ENABLE();
}
/* MPLL calibration start */
clk_ll_mpll_calibration_start();
clk_ll_mpll_set_config(mpll_freq, xtal_freq);
/* wait calibration done */
while(!clk_ll_mpll_calibration_is_done());
/* MPLL calibration stop */
clk_ll_mpll_calibration_stop();
if (thread_safe) {
_regi2c_ctrl_ll_master_enable_clock(false);