Skip to content

Commit

Permalink
boards: Remove PLL overrides in kconfig
Browse files Browse the repository at this point in the history
Since we know the HSE speed, manual overrides are not needed anymore
  • Loading branch information
MrKevinWeiss committed Nov 3, 2022
1 parent 28aed3c commit 464f57b
Show file tree
Hide file tree
Showing 33 changed files with 30 additions and 102 deletions.
5 changes: 2 additions & 3 deletions boards/common/iotlab/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ config BOARD_COMMON_IOTLAB
select HAVE_L3G4200D
select HAVE_LSM303DLHC

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_16MHZ
endchoice
config CLOCK_HSE
default 16000000

config MODULE_BOARDS_COMMON_IOTLAB
bool
Expand Down
3 changes: 0 additions & 3 deletions boards/common/iotlab/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ FEATURES_PROVIDED += periph_uart

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot

# iotlab boards provide a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/common/iotlab/clock.config
4 changes: 0 additions & 4 deletions boards/common/iotlab/clock.config

This file was deleted.

5 changes: 2 additions & 3 deletions boards/common/weact-f4x1cx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ config BOARD_COMMON_WEACT_F4X1CX
select HAVE_SAUL_GPIO
select HAVE_MTD_SPI_NOR

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_25MHZ
endchoice
config CLOCK_HSE
default 25000000

config MODULE_BOARDS_COMMON_WEACT-F4X1CX
bool
Expand Down
2 changes: 0 additions & 2 deletions boards/common/weact-f4x1cx/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ FEATURES_PROVIDED += periph_usbdev
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

# weact-f4x1cx boards provide a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/common/weact-f4x1cx/clock.config

# This configuration enables modules that are only available when using Kconfig
# module modelling
Expand Down
4 changes: 0 additions & 4 deletions boards/common/weact-f4x1cx/clock.config

This file was deleted.

5 changes: 2 additions & 3 deletions boards/f4vi1/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ config BOARD_F4VI1
select BOARD_HAS_HSE
select BOARD_HAS_LSE

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_16MHZ
endchoice
config CLOCK_HSE
default 16000000

config CLOCK_PLL_M
default 16
Expand Down
5 changes: 2 additions & 3 deletions boards/im880b/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ config BOARD_IM880B
select BOARD_HAS_HSE
select BOARD_HAS_LSE

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_16MHZ
endchoice
config CLOCK_HSE
default 16000000

source "$(RIOTBOARD)/common/stm32/Kconfig"
5 changes: 2 additions & 3 deletions boards/lora-e5-dev/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ config BOARD_LORA_E5_DEV
select HAVE_SAUL_GPIO
select HAVE_LM75A

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_32MHZ
endchoice
config CLOCK_HSE
default 32000000

config LORA_E5_DEV_ENABLE_3P3V
bool "LoRa-E5 Development Kit - Enable 3.3V output"
Expand Down
5 changes: 2 additions & 3 deletions boards/msbiot/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ config BOARD_MSBIOT
select HAVE_MPU9150
select HAVE_SAUL_GPIO

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_16MHZ
endchoice
config CLOCK_HSE
default 16000000

config CLOCK_PLL_M
default 16
Expand Down
5 changes: 2 additions & 3 deletions boards/nucleo-wl55jc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ config BOARD_NUCLEO_WL55JC

select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_32MHZ
endchoice
config CLOCK_HSE
default 32000000

source "$(RIOTBOARD)/common/nucleo64/Kconfig"
5 changes: 2 additions & 3 deletions boards/p-nucleo-wb55/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ config BOARD_P_NUCLEO_WB55
select BOARD_HAS_HSE
select BOARD_HAS_LSE

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_32MHZ
endchoice
config CLOCK_HSE
default 32000000

source "$(RIOTBOARD)/common/nucleo/Kconfig"
5 changes: 2 additions & 3 deletions boards/pyboard/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ config BOARD_PYBOARD

select HAVE_SAUL_GPIO

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_12MHZ
endchoice
config CLOCK_HSE
default 12000000

config CLOCK_PLL_M
default 12
Expand Down
5 changes: 2 additions & 3 deletions boards/stm32f469i-disco/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ config BOARD_STM32F469I_DISCO

select HAVE_SAUL_GPIO

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_8MHZ
endchoice
config CLOCK_HSE
default 8000000

source "$(RIOTBOARD)/common/stm32/Kconfig"
5 changes: 2 additions & 3 deletions boards/stm32f723e-disco/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ config BOARD_STM32F723E_DISCO
# Workaround due to stdout only working with stdin enabled
select MODULE_STDIN if TEST_KCONFIG

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_25MHZ
endchoice
config CLOCK_HSE
default 25000000

config MODULE_PERIPH_INIT_LED0
default n if MODULE_PERIPH_SPI
Expand Down
3 changes: 0 additions & 3 deletions boards/stm32f723e-disco/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ FEATURES_PROVIDED += periph_usbdev_hs_utmi

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += tinyusb_device

# stm32f723e-disco provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/stm32f723e-disco/clock.config
5 changes: 0 additions & 5 deletions boards/stm32f723e-disco/clock.config

This file was deleted.

5 changes: 2 additions & 3 deletions boards/stm32f746g-disco/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ config BOARD_STM32F746G_DISCO
select HAVE_FT5X06


choice CHOICE_CLOCK_HSE
default CLOCK_HSE_25MHZ
endchoice
config CLOCK_HSE
default 25000000


source "$(RIOTBOARD)/common/stm32/Kconfig"
5 changes: 0 additions & 5 deletions boards/stm32f746g-disco/clock.config

This file was deleted.

3 changes: 0 additions & 3 deletions boards/stm32f746g-disco/features-shared.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev
FEATURES_PROVIDED += periph_usbdev_hs_ulpi
FEATURES_PROVIDED += tinyusb_device

# stm32f746g-disco provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/stm32f746g-disco/clock.config
5 changes: 2 additions & 3 deletions boards/stm32f7508-dk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ config BOARD_STM32F7508_DK
select HAVE_STM32_ETH
select HAVE_FT5X06

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_25MHZ
endchoice
config CLOCK_HSE
default 25000000

source "$(RIOTBOARD)/common/stm32/Kconfig"
5 changes: 2 additions & 3 deletions boards/stm32f769i-disco/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ config BOARD_STM32F769I_DISCO
select HAVE_SAUL_GPIO


choice CHOICE_CLOCK_HSE
default CLOCK_HSE_25MHZ
endchoice
config CLOCK_HSE
default 25000000


source "$(RIOTBOARD)/common/stm32/Kconfig"
3 changes: 0 additions & 3 deletions boards/stm32f769i-disco/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ FEATURES_PROVIDED += periph_usbdev

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += tinyusb_device

# stm32f769i-disco provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/stm32f769i-disco/clock.config
5 changes: 0 additions & 5 deletions boards/stm32f769i-disco/clock.config

This file was deleted.

5 changes: 2 additions & 3 deletions boards/ublox-c030-u201/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ config BOARD_UBLOX_C030_U201
select HAVE_SAUL_GPIO
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC

choice CHOICE_CLOCK_HSE
default CLOCK_HSE_12MHZ
endchoice
config CLOCK_HSE
default 12000000

source "$(RIOTBOARD)/common/stm32/Kconfig"
3 changes: 0 additions & 3 deletions boards/ublox-c030-u201/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_uart_hw_fc

# ublox-c030-u201 provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/ublox-c030-u201/clock.config
5 changes: 0 additions & 5 deletions boards/ublox-c030-u201/clock.config

This file was deleted.

3 changes: 0 additions & 3 deletions boards/weact-f401cc/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
CPU_MODEL = stm32f401cc

include $(RIOTBOARD)/common/weact-f4x1cx/Makefile.features

# weact-f401cc provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/weact-f401cc/clock.config
1 change: 0 additions & 1 deletion boards/weact-f401cc/clock.config

This file was deleted.

3 changes: 0 additions & 3 deletions boards/weact-f401ce/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
CPU_MODEL = stm32f401ce

include $(RIOTBOARD)/common/weact-f4x1cx/Makefile.features

# weact-f401ce provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/weact-f401ce/clock.config
1 change: 0 additions & 1 deletion boards/weact-f401ce/clock.config

This file was deleted.

3 changes: 0 additions & 3 deletions boards/weact-f411ce/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
CPU_MODEL = stm32f411ce

include $(RIOTBOARD)/common/weact-f4x1cx/Makefile.features

# weact-f411ce provides a custom default Kconfig clock configuration
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/weact-f411ce/clock.config
1 change: 0 additions & 1 deletion boards/weact-f411ce/clock.config

This file was deleted.

0 comments on commit 464f57b

Please sign in to comment.