2019-11-01 20:45:29 +08:00
|
|
|
# STM32F2, STM32F4 and STM32F7 PLL configuration options
|
|
|
|
|
2019-05-28 21:49:05 +08:00
|
|
|
# Copyright (c) 2019 Linaro
|
2019-11-01 20:45:29 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-05-28 21:49:05 +08:00
|
|
|
|
|
|
|
if SOC_SERIES_STM32F2X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
|
|
|
|
|
|
|
|
config CLOCK_STM32_PLL_M_DIVISOR
|
|
|
|
int "Division factor for PLL VCO input clock"
|
|
|
|
depends on CLOCK_STM32_SYSCLK_SRC_PLL
|
|
|
|
default 8
|
|
|
|
range 2 63
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
PLLM division factor needs to be set correctly to ensure that the VCO
|
|
|
|
input frequency ranges from 1 to 2 MHz. It is recommended to select a
|
|
|
|
frequency of 2 MHz to limit PLL jitter.
|
|
|
|
Allowed values: 2-63
|
2019-05-28 21:49:05 +08:00
|
|
|
|
|
|
|
config CLOCK_STM32_PLL_N_MULTIPLIER
|
|
|
|
int "Multiplier factor for PLL VCO output clock"
|
|
|
|
depends on CLOCK_STM32_SYSCLK_SRC_PLL
|
|
|
|
default 336
|
|
|
|
range 192 432 if SOC_STM32F401XE || SOC_SERIES_STM32F2X
|
|
|
|
range 50 432
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
PLLN multiplier factor needs to be set correctly to ensure that the
|
|
|
|
VCO output frequency is between 100 and 432 MHz, except on STM32F401
|
|
|
|
where the frequency must be between 192 and 432 MHz.
|
|
|
|
Allowed values: 50-432 (STM32F401: 192-432)
|
2019-05-28 21:49:05 +08:00
|
|
|
|
|
|
|
config CLOCK_STM32_PLL_P_DIVISOR
|
|
|
|
int "PLL division factor for main system clock"
|
|
|
|
depends on CLOCK_STM32_SYSCLK_SRC_PLL
|
|
|
|
default 4
|
|
|
|
range 2 8
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
PLLP division factor needs to be set correctly to not exceed 84MHz.
|
|
|
|
Allowed values: 2, 4, 6, 8
|
2019-05-28 21:49:05 +08:00
|
|
|
|
|
|
|
config CLOCK_STM32_PLL_Q_DIVISOR
|
|
|
|
int "Division factor for OTG FS, SDIO and RNG clocks"
|
|
|
|
depends on CLOCK_STM32_SYSCLK_SRC_PLL
|
|
|
|
default 7
|
|
|
|
range 2 15
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
The USB OTG FS requires a 48MHz clock to work correctly. SDIO and RNG
|
|
|
|
need a frequency lower than or equal to 48 MHz to work correctly.
|
|
|
|
Allowed values: 2-15
|
2019-05-28 21:49:05 +08:00
|
|
|
|
|
|
|
endif # SOC_SERIES_STM32F2X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
|