]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/lubbock/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / lubbock / flash.c
index dcf829b2c55f4d2c149edaab89da73af19205c21..9e07b1140d4e38fc641ba891bfccc9fc03de1669 100644 (file)
@@ -86,7 +86,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,