From 0e30625eec17ba55f7fece18c8a02b25afee9d93 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Mon, 2 Sep 2024 11:14:51 +0200 Subject: [PATCH] drivers: clock_control: stm32: Default driver selection out of soc Rather setting the driver default in soc, make it directly at symbol level rather than soc and clean up redundant `select` occurrences. Signed-off-by: Erwan Gouriou --- drivers/clock_control/Kconfig.stm32 | 1 + soc/st/stm32/Kconfig.defconfig | 4 ---- soc/st/stm32/stm32g4x/Kconfig | 1 - soc/st/stm32/stm32wlx/Kconfig | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/clock_control/Kconfig.stm32 b/drivers/clock_control/Kconfig.stm32 index 8dffa9b5843..9c2606e96a1 100644 --- a/drivers/clock_control/Kconfig.stm32 +++ b/drivers/clock_control/Kconfig.stm32 @@ -7,6 +7,7 @@ menuconfig CLOCK_CONTROL_STM32_CUBE bool "STM32 Reset & Clock Control" depends on SOC_FAMILY_STM32 + default y select USE_STM32_LL_UTILS select USE_STM32_LL_RCC if (SOC_SERIES_STM32MP1X || SOC_SERIES_STM32H7X || \ SOC_SERIES_STM32H7RSX || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X) diff --git a/soc/st/stm32/Kconfig.defconfig b/soc/st/stm32/Kconfig.defconfig index a11cf808a6a..0741439de6c 100644 --- a/soc/st/stm32/Kconfig.defconfig +++ b/soc/st/stm32/Kconfig.defconfig @@ -57,10 +57,6 @@ choice STM32_LPTIM_CLOCK default STM32_LPTIM_CLOCK_LSI if "$(dt_node_ph_array_prop_int,$(DT_STM32_LPTIM_PATH),clocks,1,bus)" = 3 endchoice -config CLOCK_CONTROL_STM32_CUBE - default y - depends on CLOCK_CONTROL - config CLOCK_CONTROL_INIT_PRIORITY default 1 depends on CLOCK_CONTROL diff --git a/soc/st/stm32/stm32g4x/Kconfig b/soc/st/stm32/stm32g4x/Kconfig index 50aecbbca3c..0c2e59d40fb 100644 --- a/soc/st/stm32/stm32g4x/Kconfig +++ b/soc/st/stm32/stm32g4x/Kconfig @@ -10,6 +10,5 @@ config SOC_SERIES_STM32G4X select CPU_HAS_FPU select HAS_STM32CUBE select CPU_HAS_ARM_MPU - select CLOCK_CONTROL_STM32_CUBE if CLOCK_CONTROL select HAS_PM select HAS_SWO diff --git a/soc/st/stm32/stm32wlx/Kconfig b/soc/st/stm32/stm32wlx/Kconfig index a4983fdad0a..fb041578012 100644 --- a/soc/st/stm32/stm32wlx/Kconfig +++ b/soc/st/stm32/stm32wlx/Kconfig @@ -9,6 +9,5 @@ config SOC_SERIES_STM32WLX select CPU_CORTEX_M_HAS_DWT select HAS_STM32CUBE select CPU_HAS_ARM_MPU - select CLOCK_CONTROL_STM32_CUBE if CLOCK_CONTROL select HAS_PM select HAS_POWEROFF