mpc52xx, digsy_mtc: protect default flash sectors
authorHeiko Schocher <hs@denx.de>
Sun, 3 Apr 2011 20:10:22 +0000 (20:10 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 27 Apr 2011 22:52:38 +0000 (00:52 +0200)
call flash_protect_default() to protect default sectors.

Signed-off-by: Heiko Schocher <hs@denx.de>
board/digsy_mtc/digsy_mtc.c

index 79cb3f1343d3344fc89ca00c4445b7c805e963b2..9f13a3d1070fb946f82a106e2b579a99ef614b16 100644 (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;
 }