From 5199e1bfa96c60e135b5607b45cf54216d836bbc Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 30 Aug 2021 09:56:47 +0200 Subject: [PATCH] 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 --- drivers/clock_control/clock_stm32_ll_common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clock_control/clock_stm32_ll_common.c b/drivers/clock_control/clock_stm32_ll_common.c index 8cf5710b06a..ec8d97e6f2a 100644 --- a/drivers/clock_control/clock_stm32_ll_common.c +++ b/drivers/clock_control/clock_stm32_ll_common.c @@ -636,13 +636,11 @@ int stm32_clock_control_init(const struct device *dev) LL_SetFlashLatency(new_flash_freq); } -#if !defined(CONFIG_SOC_SERIES_STM32WBX) /* Set MSI Range */ #if !defined(CONFIG_SOC_SERIES_STM32WBX) LL_RCC_MSI_EnableRangeSelection(); #endif LL_RCC_MSI_SetRange(STM32_MSI_RANGE << RCC_CR_MSIRANGE_Pos); -#endif #if STM32_MSI_PLL_MODE /* Enable MSI hardware auto calibration */