Skip to content

Commit 8b6b9ab

Browse files
committed
drivers: clock control of the stm32h7 skips pll1 re-init
Skip the PLL1 init if it is already running, this will avoid disabling the PLL when running after a jump from mcuboot Signed-off-by: Francois Ramu <[email protected]>
1 parent 2d582f4 commit 8b6b9ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/clock_control/clock_stm32_ll_h7.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,12 @@ __unused
666666
static int set_up_plls(void)
667667
{
668668
#if defined(STM32_PLL_ENABLED) || defined(STM32_PLL2_ENABLED) || defined(STM32_PLL3_ENABLED)
669+
670+
/* Skip if PLL1 is already configured */
671+
if (LL_RCC_PLL1_IsReady()) {
672+
return 0;
673+
}
674+
669675
int r;
670676
uint32_t vco_input_range;
671677
uint32_t vco_output_range;

0 commit comments

Comments
 (0)