diff --git a/drivers/flash/Kconfig.stm32 b/drivers/flash/Kconfig.stm32 index 9a2e4d4b7d7..60dd966a0ae 100644 --- a/drivers/flash/Kconfig.stm32 +++ b/drivers/flash/Kconfig.stm32 @@ -16,7 +16,7 @@ config STM32_MEMMAP This option enables the XIP mode for the external NOR flash mounted on STM32 boards. -config SOC_FLASH_STM32 +menuconfig SOC_FLASH_STM32 bool "STM32 flash driver" depends on DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED select FLASH_HAS_DRIVER_ENABLED diff --git a/drivers/pinctrl/Kconfig.stm32 b/drivers/pinctrl/Kconfig.stm32 index 45897418171..741d1bb5405 100644 --- a/drivers/pinctrl/Kconfig.stm32 +++ b/drivers/pinctrl/Kconfig.stm32 @@ -1,8 +1,8 @@ # Copyright (c) 2021 Nordic Semiconductor ASA # SPDX-License-Identifier: Apache-2.0 -config PINCTRL_STM32 - bool +menuconfig PINCTRL_STM32 + bool "Pin controller driver for STM32 MCUs" default y depends on DT_HAS_ST_STM32_PINCTRL_ENABLED || DT_HAS_ST_STM32F1_PINCTRL_ENABLED help diff --git a/drivers/smbus/Kconfig b/drivers/smbus/Kconfig index 74efaae29f1..a81b239e444 100644 --- a/drivers/smbus/Kconfig +++ b/drivers/smbus/Kconfig @@ -77,7 +77,7 @@ config SMBUS_INTEL_PCH_SMBALERT endif # SMBUS_INTEL_PCH -config SMBUS_STM32 +menuconfig SMBUS_STM32 bool "STM32 SMBus driver" default y depends on DT_HAS_ST_STM32_SMBUS_ENABLED diff --git a/drivers/watchdog/Kconfig.stm32 b/drivers/watchdog/Kconfig.stm32 index 87ace6ba59b..b35a4c7b97d 100644 --- a/drivers/watchdog/Kconfig.stm32 +++ b/drivers/watchdog/Kconfig.stm32 @@ -5,7 +5,7 @@ # Copyright (c) 2019 Centaur Analytics, Inc # SPDX-License-Identifier: Apache-2.0 -config IWDG_STM32 +menuconfig IWDG_STM32 bool "Independent Watchdog (IWDG) Driver for STM32 family of MCUs" default y depends on DT_HAS_ST_STM32_WATCHDOG_ENABLED