Skip to content

Commit

Permalink
drivers: flash: Mark numaker series RMC as no_explicit_erase
Browse files Browse the repository at this point in the history
The device is based on ReRAM and does not require erase.

Signed-off-by: Dominik Ermel <[email protected]>
  • Loading branch information
de-nordic authored and henrikbrixandersen committed Jun 4, 2024
1 parent 856d770 commit 56142dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/flash/Kconfig.numaker_rmc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config SOC_FLASH_NUMAKER_RMC
default y
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_DRIVER_ENABLED
select FLASH_HAS_NO_EXPLICIT_ERASE
select HAS_NUMAKER_RMC
depends on DT_HAS_NUVOTON_NUMAKER_RMC_ENABLED
help
Expand Down
3 changes: 3 additions & 0 deletions drivers/flash/soc_flash_numaker_rmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ struct flash_numaker_data {
static const struct flash_parameters flash_numaker_parameters = {
.write_block_size = SOC_NV_FLASH_WRITE_BLOCK_SIZE,
.erase_value = 0xff,
.caps = {
.no_explicit_erase = true,
},
};

/* Validate offset and length */
Expand Down

0 comments on commit 56142dc

Please sign in to comment.