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