]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/shannon/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / shannon / flash.c
index 8e0f7521939230066dc3ea0cb2d7d31066651b03..c340fea52ca100972e8acc053badd902ea27014e 100644 (file)
@@ -124,7 +124,7 @@ ulong flash_init(void)
 #else
     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,