drivers: clock control stm32wb has MSI clock range to set

When the MSI clock is selected as source on the stm32wbx device,
the MSI has a range to choose the MSI input frequency.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-08-30 09:56:47 +02:00 committed by Anas Nashif
commit 5199e1bfa9

View file

@ -636,13 +636,11 @@ int stm32_clock_control_init(const struct device *dev)
LL_SetFlashLatency(new_flash_freq); LL_SetFlashLatency(new_flash_freq);
} }
#if !defined(CONFIG_SOC_SERIES_STM32WBX)
/* Set MSI Range */ /* Set MSI Range */
#if !defined(CONFIG_SOC_SERIES_STM32WBX) #if !defined(CONFIG_SOC_SERIES_STM32WBX)
LL_RCC_MSI_EnableRangeSelection(); LL_RCC_MSI_EnableRangeSelection();
#endif #endif
LL_RCC_MSI_SetRange(STM32_MSI_RANGE << RCC_CR_MSIRANGE_Pos); LL_RCC_MSI_SetRange(STM32_MSI_RANGE << RCC_CR_MSIRANGE_Pos);
#endif
#if STM32_MSI_PLL_MODE #if STM32_MSI_PLL_MODE
/* Enable MSI hardware auto calibration */ /* Enable MSI hardware auto calibration */