From c2ee8209ab9d8ccf4d354c272a508bef9efd6bd4 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Fri, 1 Apr 2022 15:37:45 +0200 Subject: [PATCH] drivers/clock_control: stm32_common: Remove unused definitions STM32WL_DUAL_CORE and RCC_CALC_MSI_RUN_FREQ are not used anymore. Clean up those definitions Signed-off-by: Erwan Gouriou --- drivers/clock_control/clock_stm32_ll_common.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/clock_control/clock_stm32_ll_common.c b/drivers/clock_control/clock_stm32_ll_common.c index 846972374dc..09a1bc331c7 100644 --- a/drivers/clock_control/clock_stm32_ll_common.c +++ b/drivers/clock_control/clock_stm32_ll_common.c @@ -35,15 +35,6 @@ #define fn_mco2_prescaler(v) LL_RCC_MCO2_DIV_ ## v #define mco2_prescaler(v) fn_mco2_prescaler(v) -/* Calculate MSI freq for the given range (at RUN range, not after standby) */ -#if !defined(LL_RCC_MSIRANGESEL_RUN) -/* CONFIG_SOC_SERIES_STM32WBX or CONFIG_SOC_SERIES_STM32L0X or CONFIG_SOC_SERIES_STM32L1X */ -#define RCC_CALC_MSI_RUN_FREQ() __LL_RCC_CALC_MSI_FREQ(LL_RCC_MSI_GetRange()) -#else -/* mainly CONFIG_SOC_SERIES_STM32WLX or CONFIG_SOC_SERIES_STM32L4X or CONFIG_SOC_SERIES_STM32L5X */ -#define RCC_CALC_MSI_RUN_FREQ() __LL_RCC_CALC_MSI_FREQ( \ - LL_RCC_MSIRANGESEL_RUN, LL_RCC_MSI_GetRange()) -#endif #if DT_NODE_HAS_PROP(DT_NODELABEL(rcc), ahb4_prescaler) #define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK4_FREQ @@ -56,11 +47,6 @@ #define GET_CURRENT_FLASH_PRESCALER LL_RCC_GetAHBPrescaler #endif -/* Identify stm32wl dual-core socs by symbol defined in CMSIS dev header file */ -#if (defined(CONFIG_SOC_SERIES_STM32WLX) && defined(DUAL_CORE)) -#define STM32WL_DUAL_CORE -#endif - static uint32_t get_bus_clock(uint32_t clock, uint32_t prescaler) { return clock / prescaler;