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:
parent
127bc5e35e
commit
0e970c8362
@ -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.
|
||||
|
||||
@ -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 ¶meters;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user