Skip to content

Commit f62bb62

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

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/flash/Kconfig.nrf_mram

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config SOC_FLASH_NRF_MRAM
1010
depends on DT_HAS_NORDIC_MRAM_ENABLED
1111
select FLASH_HAS_DRIVER_ENABLED
1212
select FLASH_HAS_PAGE_LAYOUT
13+
select FLASH_HAS_NO_EXPLICIT_ERASE
1314
imply MPU_ALLOW_FLASH_WRITE if ARM_MPU
1415
help
1516
Enables Nordic Semiconductor flash driver for MRAM in direct write mode.

drivers/flash/soc_flash_nrf_mram.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ static const struct flash_parameters *nrf_mram_get_parameters(const struct devic
142142
static const struct flash_parameters parameters = {
143143
.write_block_size = WRITE_BLOCK_SIZE,
144144
.erase_value = ERASE_VALUE,
145+
.caps = {
146+
.no_explicit_erase = true,
147+
},
145148
};
146149

147150
return &parameters;

0 commit comments

Comments
 (0)