Skip to content
Snippets Groups Projects
Commit f3143134 authored by Heiko Schocher's avatar Heiko Schocher Committed by Wolfgang Denk
Browse files

mpc52xx, digsy_mtc: protect default flash sectors


call flash_protect_default() to protect default sectors.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
parent 1b41493d
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#if defined(CONFIG_DIGSY_REV5) #if defined(CONFIG_DIGSY_REV5)
#include "is45s16800a2.h" #include "is45s16800a2.h"
#include <mtd/cfi_flash.h> #include <mtd/cfi_flash.h>
#include <flash.h>
#else #else
#include "is42s16800a-7t.h" #include "is42s16800a-7t.h"
#endif #endif
...@@ -398,6 +399,7 @@ int update_flash_size (int flash_size) ...@@ -398,6 +399,7 @@ int update_flash_size (int flash_size)
size += flash_get_size(base, i); size += flash_get_size(base, i);
} }
} }
flash_protect_default();
gd->bd->bi_flashstart = base; gd->bd->bi_flashstart = base;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment