Skip to content

Commit 96c7852

Browse files
ABOSTMnashif
authored andcommitted
drivers: clock_control: Kconfig.stm32l4_l5_wb fix serie differences
Take into account PLL configuration differences, depending on sSTM32 serie. Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 1afbe07 commit 96c7852

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

drivers/clock_control/Kconfig.stm32l4_l5_wb

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,59 @@ config CLOCK_STM32_PLL_M_DIVISOR
99
int "PLL divisor"
1010
depends on CLOCK_STM32_SYSCLK_SRC_PLL
1111
default 1
12-
range 1 8
12+
range 1 8 if SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX
13+
range 1 16 if SOC_SERIES_STM32L5X
1314
help
14-
PLL divisor, allowed values: 1-8. With this ensure that the PLL
15-
VCO input frequency ranges from 4 to 16MHz.
15+
PLL divisor,
16+
L4: allowed values: 1-8. PLL VCO input ranges from 4 to 16MHz
17+
L5: allowed values: 1-16. PLL VCO input ranges from 4 to 16MHz
18+
WB: allowed values: 1-8. PLL VCO input ranges from 2.66 to 16MHz
1619

1720
config CLOCK_STM32_PLL_N_MULTIPLIER
1821
int "PLL multiplier"
1922
depends on CLOCK_STM32_SYSCLK_SRC_PLL
2023
default 20
21-
range 8 86
24+
range 8 86 if SOC_SERIES_STM32L4X || SOC_SERIES_STM32L5X
25+
range 6 127 if SOC_SERIES_STM32WBX
2226
help
23-
PLL multiplier, allowed values: 2-16. PLL output must not
24-
exceed 344MHz.
27+
PLL multiplier,
28+
L4: allowed values: 8-86. PLL VCO output ranges from 64 to 334MHz
29+
L5: allowed values: 8-86. PLL VCO output ranges from 64 to 334MHz
30+
WB: allowed values: 6-127. PLL VCO output ranges from 96 to 334MHz
2531

2632
config CLOCK_STM32_PLL_P_DIVISOR
2733
int "PLL P Divisor"
2834
depends on CLOCK_STM32_SYSCLK_SRC_PLL
2935
default 7
30-
range 0 17
36+
range 0 17 if SOC_SERIES_STM32L4X || SOC_SERIES_STM32L5X
37+
range 0 32 if SOC_SERIES_STM32WBX
3138
help
32-
PLL P Output divisor, allowed values: 0, 7, 17.
39+
PLL P Output divisor
40+
L4: allowed values: 0, 7, 17. PLLP do not exceed 80MHz
41+
L5: allowed values: 0, 7, 17. PLLP do not exceed 80MHz
42+
WB: allowed values: 0, 2-32. PLLP do not exceed 64MHz
3343

3444
config CLOCK_STM32_PLL_Q_DIVISOR
3545
int "PLL Q Divisor"
3646
depends on CLOCK_STM32_SYSCLK_SRC_PLL
3747
default 2
3848
range 0 8
3949
help
40-
PLL Q Output divisor, allowed values: 0, 2, 4, 6, 8.
50+
PLL Q Output divisor
51+
L4: allowed values: 0, 2, 4, 6, 8. PLLQ do not exceed 80MHz
52+
L5: allowed values: 0, 2, 4, 6, 8. PLLQ do not exceed 80MHz
53+
WB: allowed values: 0, 2-8. PLLQ do not exceed 64MHz
4154

4255
config CLOCK_STM32_PLL_R_DIVISOR
4356
int "PLL R Divisor"
4457
depends on CLOCK_STM32_SYSCLK_SRC_PLL
4558
default 4
4659
range 0 8
4760
help
48-
PLL R Output divisor, allowed values: 0, 2, 4, 6, 8.
61+
PLL R Output divisor
62+
L4: allowed values: 0, 2, 4, 6, 8. PLLR do not exceed 80MHz
63+
L5: allowed values: 0, 2, 4, 6, 8. PLLR do not exceed 110MHz
64+
WB: allowed values: 0, 2-8. PLLR do not exceed 64MHz
4965

5066
config CLOCK_STM32_LSE
5167
bool "Low-speed external clock"

0 commit comments

Comments
 (0)