Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: clock_control: stm32 ll common: fix RCC pll disable #83062

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drivers/clock_control/clock_stm32_ll_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,11 @@ static void set_up_plls(void)
stm32_clock_switch_to_hsi();
LL_RCC_SetAHBPrescaler(ahb_prescaler(1));
}
/* Disable PLL */
LL_RCC_PLL_Disable();
while (LL_RCC_PLL_IsReady() != 0U) {
/* Wait for PLL to be disabled */
}

#endif

Expand All @@ -580,6 +584,9 @@ static void set_up_plls(void)
* since PLL source can be PLL2.
*/
LL_RCC_PLL2_Disable();
while (LL_RCC_PLL2_IsReady() != 0U) {
/* Wait for PLL2 to be disabled */
}

config_pll2();

Expand Down
Loading