]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/eltec/mhpc/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / eltec / mhpc / flash.c
index 58cfd7047fd19e5bb5e8754df965286c51f0ae56..e9c8f9862d4e3f3c714dc4afd40e41546d5f5b87 100644 (file)
@@ -92,7 +92,7 @@ unsigned long flash_init (void)
        /* monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
                            CFG_FLASH_BASE,
-                           CFG_FLASH_BASE+CFG_MONITOR_LEN-1,
+                           CFG_FLASH_BASE+monitor_flash_len-1,
                            &flash_info[0]);
 
        flash_info[0].size = size_b0;