]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/socrates/socrates.c
Redundant Environment: protect full sector size
[karo-tx-uboot.git] / board / socrates / socrates.c
index df9696e69a39cc8d6aed6ea6d209e093f00ab0bc..51d66d517e9608b0208a8714aefea710c5a2cba8 100644 (file)
@@ -136,7 +136,7 @@ int misc_init_r (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]);
        }