2023-06-23 19:11:20 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2024 Nordic Semiconductor ASA
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig SOC_FLASH_NRF_RRAM
|
|
|
|
bool "Nordic Semiconductor flash driver for nRF RRAM"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_NORDIC_RRAM_CONTROLLER_ENABLED
|
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
|
|
select FLASH_NRF_FORCE_ALT
|
|
|
|
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
|
|
|
|
help
|
|
|
|
Enables Nordic Semiconductor flash driver for nRF RRAM controllers.
|
|
|
|
The entire contiguous block of RRAM gets logically divided into pages,
|
|
|
|
but partial erase is always supported.
|
|
|
|
|
|
|
|
if SOC_FLASH_NRF_RRAM
|
|
|
|
|
|
|
|
config NRF_RRAM_WRITE_BUFFER_SIZE
|
|
|
|
int "Internal write-buffer size"
|
2023-09-26 23:02:10 +08:00
|
|
|
default 32 if !SOC_FLASH_NRF_RADIO_SYNC_NONE
|
2023-06-23 19:11:20 +08:00
|
|
|
default 0
|
|
|
|
range 0 32
|
|
|
|
help
|
|
|
|
Number of 128-bit words.
|
|
|
|
Maximum buffer size can be configured to the value of 32 (128-bit words).
|
|
|
|
Set 0 to disable write-buffer.
|
|
|
|
|
|
|
|
config NRF_RRAM_READYNEXT_TIMEOUT_VALUE
|
|
|
|
int "Preload timeout value for waiting for a next write in RRAMC clock cycles"
|
|
|
|
default 128
|
|
|
|
range 0 4095
|
|
|
|
help
|
|
|
|
Set 0 to disable ready next timeout counter.
|
|
|
|
|
2023-08-10 21:33:30 +08:00
|
|
|
choice SOC_FLASH_NRF_RADIO_SYNC_CHOICE
|
|
|
|
prompt "Nordic nRFx flash driver synchronization"
|
|
|
|
default SOC_FLASH_NRF_RADIO_SYNC_TICKER if BT_LL_SW_SPLIT
|
|
|
|
default SOC_FLASH_NRF_RADIO_SYNC_NONE
|
|
|
|
help
|
|
|
|
synchronization between flash memory driver and radio.
|
|
|
|
|
|
|
|
config SOC_FLASH_NRF_RADIO_SYNC_TICKER
|
|
|
|
bool "Nordic nRFx flash driver synchronized with radio"
|
|
|
|
depends on BT_LL_SW_SPLIT
|
|
|
|
help
|
|
|
|
Enable synchronization between flash memory driver and radio using
|
|
|
|
BLE LL controller ticker API.
|
|
|
|
|
|
|
|
config SOC_FLASH_NRF_RADIO_SYNC_NONE
|
|
|
|
bool "none"
|
|
|
|
help
|
|
|
|
disable synchronization between flash memory driver and radio.
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SOC_FLASH_NRF_TIMEOUT_MULTIPLIER
|
|
|
|
int
|
|
|
|
depends on !SOC_FLASH_NRF_RADIO_SYNC_NONE
|
|
|
|
default 1
|
|
|
|
|
2023-06-23 19:11:20 +08:00
|
|
|
endif # SOC_FLASH_NRF_RRAM
|