cpu/stm32: move stm32l4+ default PLL N to cpu

This commit is contained in:
Alexandre Abadie 2020-11-09 11:55:28 +01:00
parent ef5897775d
commit 36d33d38f7
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -139,9 +139,17 @@ extern "C" {
(IS_ACTIVE(CONFIG_CLOCK_PLL_SRC_HSE) && (CLOCK_HSE == MHZ(16)))
#define CONFIG_CLOCK_PLL_N (32)
#else
#if defined(CPU_LINE_STM32L4A6xx) || defined(CPU_LINE_STM32L4P5xx) || \
defined(CPU_LINE_STM32L4Q5xx) || defined(CPU_LINE_STM32L4R5xx) || \
defined(CPU_LINE_STM32L4R7xx) || defined(CPU_LINE_STM32L4R9xx) || \
defined(CPU_LINE_STM32L4S5xx) || defined(CPU_LINE_STM32L4S7xx) || \
defined(CPU_LINE_STM32L4S9xx)
#define CONFIG_CLOCK_PLL_N (30)
#else
#define CONFIG_CLOCK_PLL_N (20)
#endif
#endif
#endif
#ifndef CONFIG_CLOCK_PLL_Q
#define CONFIG_CLOCK_PLL_Q (2)
#endif