diff --git a/drivers/clock_control/Kconfig.nrf b/drivers/clock_control/Kconfig.nrf index 3fe072a4eb7..5f52c731ef0 100644 --- a/drivers/clock_control/Kconfig.nrf +++ b/drivers/clock_control/Kconfig.nrf @@ -4,6 +4,15 @@ # # SPDX-License-Identifier: Apache-2.0 +config CLOCK_CONTROL_NRF_FORCE_ALT + bool + depends on SOC_COMPATIBLE_NRF + help + This option can be enabled to force an alternative implementation + of the clock control driver. + +if !CLOCK_CONTROL_NRF_FORCE_ALT + menuconfig CLOCK_CONTROL_NRF bool "NRF Clock controller support" depends on SOC_COMPATIBLE_NRF @@ -67,3 +76,5 @@ config CLOCK_CONTROL_NRF_K32SRC_20PPM endchoice endif # CLOCK_CONTROL_NRF + +endif #!CLOCK_CONTROL_NRF_FORCE_ALT diff --git a/drivers/entropy/Kconfig.nrf5 b/drivers/entropy/Kconfig.nrf5 index 5185743f36d..8d9aefee6ff 100644 --- a/drivers/entropy/Kconfig.nrf5 +++ b/drivers/entropy/Kconfig.nrf5 @@ -5,6 +5,15 @@ # # SPDX-License-Identifier: Apache-2.0 +config ENTROPY_NRF_FORCE_ALT + bool + depends on SOC_COMPATIBLE_NRF + help + This option can be enabled to force an alternative implementation + of the entropy driver. + +if !ENTROPY_NRF_FORCE_ALT + menuconfig ENTROPY_NRF5_RNG bool "nRF5 RNG driver" depends on SOC_COMPATIBLE_NRF @@ -70,3 +79,5 @@ config ENTROPY_NRF5_PRI nRF5X RNG IRQ priority. endif # ENTROPY_NRF5_RNG + +endif # !ENTROPY_NRF_FORCE_ALT diff --git a/drivers/flash/Kconfig.nrf b/drivers/flash/Kconfig.nrf index 13e49f5cbc4..5ae519fcae9 100644 --- a/drivers/flash/Kconfig.nrf +++ b/drivers/flash/Kconfig.nrf @@ -1,3 +1,12 @@ +config FLASH_NRF_FORCE_ALT + bool + depends on SOC_COMPATIBLE_NRF + help + This option can be enabled to force an alternative implementation + of the flash driver. + +if !FLASH_NRF_FORCE_ALT + config SOC_FLASH_NRF bool "Nordic Semiconductor nRF flash driver" depends on SOC_FAMILY_NRF @@ -20,3 +29,5 @@ config SOC_FLASH_NRF_UICR help Enable operations on UICR. Once enabled UICR are written or read as ordinary flash memory. Erase is possible for whole UICR at once. + +endif #!FLASH_NRF_FORCE_ALT