Commit 25771e69 authored by Alexandre Bourdiol's avatar Alexandre Bourdiol Committed by Christopher Friedt
Browse files

drivers: clock_control: stm32: enable PWR clock unconditionally



Enable PWR clock unconditionally for L4, L5 and U5
like it is done on other stm32 series

Fixes #37781

Signed-off-by: default avatarAlexandre Bourdiol <alexandre.bourdiol@st.com>
parent 92e36185
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -48,6 +48,11 @@ void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit)
 */
void config_enable_default_clocks(void)
{
#ifdef LL_APB1_GRP1_PERIPH_PWR
	/* Enable the power interface clock */
	LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
#endif

#if STM32_LSE_CLOCK
	/* LSE belongs to the back-up domain, enable access.*/

@@ -57,11 +62,6 @@ void config_enable_default_clocks(void)
#endif
	z_stm32_hsem_lock(CFG_HW_RCC_SEMID, HSEM_LOCK_DEFAULT_RETRY);

#ifdef LL_APB1_GRP1_PERIPH_PWR
	/* Enable the power interface clock */
	LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
#endif

	/* Set the DBP bit in the Power control register 1 (PWR_CR1) */
	LL_PWR_EnableBkUpAccess();
	while (!LL_PWR_IsEnabledBkUpAccess()) {