diff options
Diffstat (limited to 'board/zinger/hardware.c')
-rw-r--r-- | board/zinger/hardware.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/zinger/hardware.c b/board/zinger/hardware.c index ceeac38d38..7e1f29da38 100644 --- a/board/zinger/hardware.c +++ b/board/zinger/hardware.c @@ -308,7 +308,8 @@ int flash_physical_write(int offset, int size, const char *data) int res = EC_SUCCESS; int i; - if ((uint32_t)address > CONFIG_PROGRAM_MEMORY_BASE + CONFIG_FLASH_SIZE) + if ((uint32_t)address > + CONFIG_PROGRAM_MEMORY_BASE + CONFIG_FLASH_SIZE_BYTES) return EC_ERROR_INVAL; /* unlock CR if needed */ |