diff options
Diffstat (limited to 'board/zinger/hardware.c')
-rw-r--r-- | board/zinger/hardware.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/zinger/hardware.c b/board/zinger/hardware.c index 1fca39a61e..59e2f8b24b 100644 --- a/board/zinger/hardware.c +++ b/board/zinger/hardware.c @@ -307,6 +307,9 @@ int flash_write_rw(int offset, int size, const char *data) int res = EC_SUCCESS; int i; + /* notify board of a RW flash contents change */ + board_rw_contents_change(); + if ((uint32_t)address > CONFIG_FLASH_BASE + CONFIG_FLASH_SIZE) return EC_ERROR_INVAL; @@ -358,6 +361,9 @@ int flash_erase_rw(void) int offset = CONFIG_FW_RW_OFF; int size = CONFIG_FW_RW_SIZE; + /* notify board of a RW flash contents change */ + board_rw_contents_change(); + /* unlock CR if needed */ if (STM32_FLASH_CR & CR_LOCK) { STM32_FLASH_KEYR = KEY1; |