Skip to content
Commit 15780bd5 authored by Martí Bolívar's avatar Martí Bolívar Committed by Kumar Gala
Browse files

clock_control: stm32: fix a PLL init corner case



Commit 58c8d151 ("clock control:stm32: provide STM32Cube LL based
driver") added PLL initialization which disables the PLL before
configuring it.

This works if the system clock source is not the PLL (which is the
usual case for Zephyr booting out of chip reset). However, if the
SYSCLK source *is* the PLL, this halts execution.

To support this use case, switch the SYSCLK source to the
always-present HSI before disabling the PLL.

Signed-off-by: default avatarMarti Bolivar <marti.bolivar@linaro.org>
parent cf05109c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment