diff options
Diffstat (limited to 'board/netta/flash.c')
-rw-r--r-- | board/netta/flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/netta/flash.c b/board/netta/flash.c index 45e6b30102..565fd67c6e 100644 --- a/board/netta/flash.c +++ b/board/netta/flash.c @@ -69,13 +69,13 @@ unsigned long flash_init(void) flash_protect ( FLAG_PROTECT_SET, CONFIG_ENV_ADDR, - CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, + CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1, &flash_info[0]); #ifdef CONFIG_ENV_ADDR_REDUND flash_protect ( FLAG_PROTECT_SET, CONFIG_ENV_ADDR_REDUND, - CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE_REDUND - 1, + CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1, &flash_info[0]); #endif |