mpc52xx, digsy_mtc: protect default flash sectors

call flash_protect_default() to protect default sectors.

Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
Heiko Schocher 2011-04-03 20:10:22 +00:00 committed by Wolfgang Denk
parent 1b41493def
commit f314313494
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@
#if defined(CONFIG_DIGSY_REV5)
#include "is45s16800a2.h"
#include <mtd/cfi_flash.h>
#include <flash.h>
#else
#include "is42s16800a-7t.h"
#endif
@ -398,6 +399,7 @@ int update_flash_size (int flash_size)
size += flash_get_size(base, i);
}
}
flash_protect_default();
gd->bd->bi_flashstart = base;
return 0;
}