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 <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2024-03-11 16:19:47 +00:00 committed by Henrik Brix Andersen
parent 127bc5e35e
commit 0e970c8362
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ config SOC_FLASH_NRF_MRAM
depends on DT_HAS_NORDIC_MRAM_ENABLED
select FLASH_HAS_DRIVER_ENABLED
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_NO_EXPLICIT_ERASE
imply MPU_ALLOW_FLASH_WRITE if ARM_MPU
help
Enables Nordic Semiconductor flash driver for MRAM in direct write mode.

View File

@ -142,6 +142,9 @@ static const struct flash_parameters *nrf_mram_get_parameters(const struct devic
static const struct flash_parameters parameters = {
.write_block_size = WRITE_BLOCK_SIZE,
.erase_value = ERASE_VALUE,
.caps = {
.no_explicit_erase = true,
},
};
return &parameters;