mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-10 22:32:34 +00:00
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
140 lines
3.6 KiB
Plaintext
140 lines
3.6 KiB
Plaintext
# Kconfig - STM32F4 MCU clock control driver config
|
|
#
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
# Copyright (c) Linaro Limited.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
if SOC_SERIES_STM32F4X
|
|
|
|
menuconfig CLOCK_CONTROL_STM32F4X
|
|
bool
|
|
prompt "STM32F4X Reset & Clock Control"
|
|
default y if SOC_SERIES_STM32F4X
|
|
help
|
|
Enable driver for Reset & Clock Control subsystem found
|
|
in STM32F4 family of MCUs
|
|
|
|
config CLOCK_CONTROL_STM32F4X_DEVICE_INIT_PRIORITY
|
|
int "Clock Control Device Priority"
|
|
default 1
|
|
depends on CLOCK_CONTROL_STM32F4X
|
|
help
|
|
This option controls the priority of clock control
|
|
device initialization. Higher priority ensures that the device
|
|
is initialized earlier in the startup cycle. If unsure, leave
|
|
at default value 1
|
|
|
|
choice
|
|
prompt "STM32F4X System Clock Source"
|
|
depends on CLOCK_CONTROL_STM32F4X
|
|
|
|
config CLOCK_STM32F4X_SYSCLK_SRC_HSI
|
|
bool "HSI"
|
|
help
|
|
Use HSI as source of SYSCLK
|
|
|
|
config CLOCK_STM32F4X_SYSCLK_SRC_HSE
|
|
bool "HSE"
|
|
help
|
|
Use HSE as source of SYSCLK
|
|
|
|
config CLOCK_STM32F4X_SYSCLK_SRC_PLL
|
|
bool "PLL"
|
|
help
|
|
Use PLL as source of SYSCLK
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "STM32F4X PLL Clock Source"
|
|
depends on CLOCK_CONTROL_STM32F4X && CLOCK_STM32F4X_SYSCLK_SRC_PLL
|
|
|
|
config CLOCK_STM32F4X_PLL_SRC_HSI
|
|
bool "HSI"
|
|
help
|
|
Use HSI as source of PLL
|
|
|
|
config CLOCK_STM32F4X_PLL_SRC_HSE
|
|
bool "HSE"
|
|
help
|
|
Use HSE as source of PLL
|
|
|
|
endchoice
|
|
|
|
config CLOCK_STM32F4X_HSE_BYPASS
|
|
bool "HSE bypass"
|
|
depends on CLOCK_CONTROL_STM32F4X && (CLOCK_STM32F4X_PLL_SRC_HSE || CLOCK_STM32F4X_SYSCLK_SRC_HSE)
|
|
help
|
|
Enable this option to bypass external high-speed clock (HSE).
|
|
|
|
config CLOCK_STM32F4X_PLLM_DIV_FACTOR
|
|
int "Division factor for PLL VCO input clock"
|
|
depends on CLOCK_CONTROL_STM32F4X && CLOCK_STM32F4X_SYSCLK_SRC_PLL
|
|
default 8
|
|
range 2 63
|
|
help
|
|
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
|
|
|
|
config CLOCK_STM32F4X_PLLN_MULTIPLIER
|
|
int "Multiplier factor for PLL VCO output clock"
|
|
depends on CLOCK_CONTROL_STM32F4X && CLOCK_STM32F4X_SYSCLK_SRC_PLL
|
|
default 336
|
|
range 192 432
|
|
help
|
|
PLLN multiplier factor needs to be set correctly to ensure that the
|
|
VCO output frequency is between 192 and 432 MHz.
|
|
Allowed values: 192-432
|
|
|
|
config CLOCK_STM32F4X_PLLP_DIV_FACTOR
|
|
int "PLL division factor for main system clock"
|
|
depends on CLOCK_CONTROL_STM32F4X && CLOCK_STM32F4X_SYSCLK_SRC_PLL
|
|
default 4
|
|
range 2 8
|
|
help
|
|
PLLP division factor needs to be set correctly to not exceed 84MHz.
|
|
Allowed values: 2, 4, 6, 8
|
|
|
|
config CLOCK_STM32F4X_PLLQ_DIV_FACTOR
|
|
int "Division factor for OTG FS, SDIO and RNG clocks"
|
|
depends on CLOCK_CONTROL_STM32F4X && CLOCK_STM32F4X_SYSCLK_SRC_PLL
|
|
default 7
|
|
range 2 15
|
|
help
|
|
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
|
|
|
|
config CLOCK_STM32F4X_AHB_PRESCALER
|
|
int "AHB prescaler"
|
|
depends on CLOCK_CONTROL_STM32F4X
|
|
default 0
|
|
range 0 512
|
|
help
|
|
AHB prescaler, allowed values: 0, 2, 4, 8, 16, 64, 128,
|
|
256, 512.
|
|
|
|
config CLOCK_STM32F4X_APB1_PRESCALER
|
|
int "APB1 low speed clock prescaler"
|
|
depends on CLOCK_CONTROL_STM32F4X
|
|
default 2
|
|
range 0 16
|
|
help
|
|
APB1 Low speed clock (PCLK1) prescaler, allowed values:
|
|
0, 2, 4, 8, 16. The APB1 clock must not exceed 42MHz.
|
|
|
|
config CLOCK_STM32F4X_APB2_PRESCALER
|
|
int "APB2 high speed clock prescaler"
|
|
depends on CLOCK_CONTROL_STM32F4X
|
|
default 0
|
|
range 0 16
|
|
help
|
|
APB2 High speed clock (PCLK2) prescaler, allowed values:
|
|
0, 2, 4, 8, 16. The APB2 clock must not exceed 84MHz.
|
|
|
|
endif
|