]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/impa7/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / impa7 / flash.c
index c59ffb86584b72143c5df707beed897b5d47bab9..7db0b3289dc6c260a7f2495030218474a618f842 100644 (file)
@@ -72,7 +72,7 @@ ulong flash_init(void)
      */
     flash_protect(FLAG_PROTECT_SET,
                  CFG_FLASH_BASE,
      */
     flash_protect(FLAG_PROTECT_SET,
                  CFG_FLASH_BASE,
-                 CFG_FLASH_BASE + _armboot_end_data - _armboot_start,
+                 CFG_FLASH_BASE + monitor_flash_len - 1,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,