]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/siemens/pcu_e/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / siemens / pcu_e / flash.c
index b8c0df774322a62e66858d9fde1bcf1d8898687e..05c364bb23f8d63dd97c25b8b44d46ee9f7820a8 100644 (file)
@@ -148,7 +148,7 @@ unsigned long flash_init (void)
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
                      PCU_MONITOR_BASE,
-                     PCU_MONITOR_BASE+CFG_MONITOR_LEN-1,
+                     PCU_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 
 #ifdef CFG_ENV_IS_IN_FLASH