]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/dnp1110/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / dnp1110 / flash.c
index bb6d2e7995995269f676d240b7bd72575a224911..f4a8b999c6186e9117b61b024c69897fa068112c 100644 (file)
@@ -84,7 +84,7 @@ unsigned long flash_init (void)
      */
     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,