An external project extending the Zephyr RTOS and its drivers may have subsystems that must use its own specific driver(s) when active. One example is the nRF5x NVMC that must be scheduled in between radio operations. A subsystem may also be dependent on its own drivers for security, real-time and/or because of hardware constrains. In order to not introduce non-Zephyr specific code into the Zephyr tree, an option is added to disable the in-tree drivers in Zephyr. Because Kconfig does not support a good way of de-selecting other symbols, a variable on the form `<DRIVER>_FORCE_ALT` is added as a dependency for each `<DRIVER>`. For example, the out-of-tree subsystem will select `FLASH_NRF_FORCE_ALT` to disable the in-tree driver. A solution for issue #8181 would open up for a more general solution, however #8181 requires significant effort. Support for out-of-tree drivers is added to Nordic drivers for clock_control, entropy and flash. A generic solution for this is desired. Issue #14527 is tracking that progress. Signed-off-by: Thomas Stenersen <thomas.stenersen@nordicsemi.no>
34 lines
872 B
Plaintext
34 lines
872 B
Plaintext
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
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
default y
|
|
help
|
|
Enables Nordic Semiconductor nRF flash driver.
|
|
|
|
config SOC_FLASH_NRF_RADIO_SYNC
|
|
bool "Nordic nRFx flash driver synchronized with radio"
|
|
depends on SOC_FLASH_NRF && BT_CTLR
|
|
default y
|
|
help
|
|
Enable synchronization between flash memory driver and radio.
|
|
|
|
config SOC_FLASH_NRF_UICR
|
|
bool "Access to UICR"
|
|
depends on SOC_FLASH_NRF
|
|
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
|