Skip to content

Commit 985e038

Browse files
de-nordicrghaddab
authored andcommitted
[nrf fromtree] drivers: flash: Mark numaker series RMC as no_explicit_erase
The device is based on ReRAM and does not require erase. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 56142dc)
1 parent 676b56a commit 985e038

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/flash/Kconfig.numaker_rmc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ config SOC_FLASH_NUMAKER_RMC
88
default y
99
select FLASH_HAS_PAGE_LAYOUT
1010
select FLASH_HAS_DRIVER_ENABLED
11+
select FLASH_HAS_NO_EXPLICIT_ERASE
1112
select HAS_NUMAKER_RMC
1213
depends on DT_HAS_NUVOTON_NUMAKER_RMC_ENABLED
1314
help

drivers/flash/soc_flash_numaker_rmc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ struct flash_numaker_data {
2929
static const struct flash_parameters flash_numaker_parameters = {
3030
.write_block_size = SOC_NV_FLASH_WRITE_BLOCK_SIZE,
3131
.erase_value = 0xff,
32+
.caps = {
33+
.no_explicit_erase = true,
34+
},
3235
};
3336

3437
/* Validate offset and length */

0 commit comments

Comments
 (0)