diff options
Diffstat (limited to 'chip/npcx/spiflashfw/npcx_monitor.c')
-rw-r--r-- | chip/npcx/spiflashfw/npcx_monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/npcx/spiflashfw/npcx_monitor.c b/chip/npcx/spiflashfw/npcx_monitor.c index ed2d2bbd5b..a823abdfc7 100644 --- a/chip/npcx/spiflashfw/npcx_monitor.c +++ b/chip/npcx/spiflashfw/npcx_monitor.c @@ -196,8 +196,8 @@ void sspi_flash_physical_erase(int offset, int size) sspi_flash_tristate(0); /* Alignment has been checked in upper layer */ - for (; size > 0; size -= CONFIG_FLASH_ERASE_SIZE, - offset += CONFIG_FLASH_ERASE_SIZE) { + for (; size > 0; size -= NPCX_MONITOR_FLASH_ERASE_SIZE, + offset += NPCX_MONITOR_FLASH_ERASE_SIZE) { /* Enable write */ sspi_flash_write_enable(); /* Set erase address */ |