]> git.sur5r.net Git - u-boot/blobdiff - board/nx823/flash.c
POST: Add 405EX support to 4xx UART POST test
[u-boot] / board / nx823 / flash.c
index 616a13f2c6f51e2aa416b2ba8d8b68840424389f..581925e48b865afd01c5ea99bdbb129db5e32844 100644 (file)
@@ -93,7 +93,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;
@@ -462,4 +462,3 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        return (0);
 }
-