diff options
Diffstat (limited to 'board/prodrive/pdnb3/flash.c')
-rw-r--r-- | board/prodrive/pdnb3/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/prodrive/pdnb3/flash.c b/board/prodrive/pdnb3/flash.c index 351aed1e113..fe8d100083c 100644 --- a/board/prodrive/pdnb3/flash.c +++ b/board/prodrive/pdnb3/flash.c @@ -78,7 +78,7 @@ unsigned long flash_init(void) /* Redundant environment protection ON by default */ 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[CONFIG_SYS_MAX_FLASH_BANKS - 1]); flash_info[0].size = size; |