]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/trab/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / trab / flash.c
index 1550e175a4f68df412cadf51acd13b96a61448ea..a2a21c6d25e6bf5d40faa597c63ad93116d7470a 100644 (file)
@@ -99,7 +99,7 @@ ulong 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,