Skip to content

Commit 1ff8102

Browse files
de-nordicrghaddab
authored andcommitted
[nrf fromtree] drivers/flash/nrf_rram: Set no explicit erase capability to true
NRF RRAM does not require erase prior to re-programming already written area. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 127bc5e)
1 parent ccc9ed5 commit 1ff8102

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/flash/Kconfig.nrf_rram

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ menuconfig SOC_FLASH_NRF_RRAM
1111
select NRFX_RRAMC if !BUILD_WITH_TFM
1212
select FLASH_HAS_DRIVER_ENABLED
1313
select FLASH_HAS_PAGE_LAYOUT
14+
select FLASH_HAS_NO_EXPLICIT_ERASE
1415
select FLASH_NRF_FORCE_ALT
1516
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
1617
help

drivers/flash/soc_flash_nrf_rram.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ static const struct flash_parameters *nrf_rram_get_parameters(const struct devic
309309
static const struct flash_parameters parameters = {
310310
.write_block_size = WRITE_LINE_SIZE,
311311
.erase_value = ERASE_VALUE,
312+
.caps = {
313+
.no_explicit_erase = true,
314+
},
312315
};
313316

314317
return &parameters;

0 commit comments

Comments
 (0)