diff mbox

[U-Boot,3/3] mpc52xx, digsy_mtc: protect default flash sectors

Message ID 1301897422-27326-4-git-send-email-hs@denx.de
State Accepted
Commit f314313494f50aae7b5f75764d67c9f02c84c4df
Headers show

Commit Message

Heiko Schocher April 4, 2011, 6:10 a.m. UTC
call flash_protect_default() to protect default sectors.

Signed-off-by: Heiko Schocher <hs@denx.de>
---
 board/digsy_mtc/digsy_mtc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk April 27, 2011, 10:52 p.m. UTC | #1
Dear Heiko Schocher,

In message <1301897422-27326-4-git-send-email-hs@denx.de> you wrote:
> call flash_protect_default() to protect default sectors.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
>  board/digsy_mtc/digsy_mtc.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c
index 79cb3f1..9f13a3d 100644
--- a/board/digsy_mtc/digsy_mtc.c
+++ b/board/digsy_mtc/digsy_mtc.c
@@ -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;
 }