kconfig: flash: Move nrf code into it's own file
Cleanup the Kconfig code for the flash driver. Platform-specific options should be in their own Kconfig files to be consistent and to not pollute the common configuration. To this end we move the nrf options into it's own file. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
1f27a456cd
commit
1312ca7cc2
2 changed files with 22 additions and 21 deletions
|
@ -44,27 +44,7 @@ config FLASH_PAGE_LAYOUT
|
|||
help
|
||||
Enables API for retrieving the layout of flash memory pages.
|
||||
|
||||
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
|
||||
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.
|
||||
source "drivers/flash/Kconfig.nrf"
|
||||
|
||||
source "drivers/flash/Kconfig.mcux"
|
||||
|
||||
|
|
21
drivers/flash/Kconfig.nrf
Normal file
21
drivers/flash/Kconfig.nrf
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
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.
|
Loading…
Add table
Add a link
Reference in a new issue