include/driver/clock_control: stm32: Remove STM32_PLL_PREDIV1

Make the code coherent with the comment:
purely remove STM32_PLL_PREDIV1.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-10-13 16:58:56 +02:00 committed by Christopher Friedt
parent dede798ce5
commit e19716e5c9
3 changed files with 3 additions and 6 deletions

View file

@ -49,7 +49,7 @@ void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit)
* STM32F030xC, STM32F302xE, STM32F303xE and STM32F39xx
* cf Reference manual for more details
*/
pllinit->PLLDiv = STM32_PLL_PREDIV1 - 1;
pllinit->PLLDiv = STM32_PLL_PREDIV - 1;
#else
pllinit->Prediv = STM32_PLL_PREDIV - 1;
#endif /* RCC_PLLSRC_PREDIV1_SUPPORT */

View file

@ -83,7 +83,7 @@ void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit)
* ...
* 16 -> LL_RCC_PREDIV_DIV_16 -> 0x0000000F
*/
pllinit->Prediv = STM32_PLL_PREDIV1 - 1;
pllinit->Prediv = STM32_PLL_PREDIV - 1;
#endif /* CONFIG_SOC_STM32F10X_DENSITY_DEVICE */
#endif /* STM32_PLL_SRC_HSI */

View file

@ -92,10 +92,7 @@
DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), st_stm32f100_pll_clock, okay) || \
DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), st_stm32f105_pll_clock, okay)
#define STM32_PLL_MULTIPLIER DT_PROP(DT_NODELABEL(pll), mul)
#define STM32_PLL_PREDIV1 DT_PROP(DT_NODELABEL(pll), prediv)
/* We don't need to make a disctinction between PREDIV and PREDIV1 in dts */
/* As PREDIV and PREDIV1 have the same description we can use prop prediv for both */
#define STM32_PLL_PREDIV STM32_PLL_PREDIV1
#define STM32_PLL_PREDIV DT_PROP(DT_NODELABEL(pll), prediv)
#elif DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), st_stm32l0_pll_clock, okay)
#define STM32_PLL_DIVISOR DT_PROP(DT_NODELABEL(pll), div)
#define STM32_PLL_MULTIPLIER DT_PROP(DT_NODELABEL(pll), mul)