public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] mpc52xx, digsy_mtc: protect default flash sectors
Date: Mon,  4 Apr 2011 08:10:22 +0200	[thread overview]
Message-ID: <1301897422-27326-4-git-send-email-hs@denx.de> (raw)
In-Reply-To: <1301897422-27326-1-git-send-email-hs@denx.de>

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(-)

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;
 }
-- 
1.7.4

  parent reply	other threads:[~2011-04-04  6:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04  6:10 [U-Boot] [PATCH 0/3] powerpc, mpc52xx: update for digsy_mtc support Heiko Schocher
2011-04-04  6:10 ` [U-Boot] [PATCH 1/3] mpc52xx, digsy_mtc: change phy addr for rev5 boards Heiko Schocher
2011-04-04  9:44   ` Detlev Zundel
2011-04-27 22:52   ` Wolfgang Denk
2011-04-04  6:10 ` [U-Boot] [PATCH 2/3] mtd, cfi: introduce void flash_protect_default(void) Heiko Schocher
2011-04-07  8:21   ` Stefan Roese
2011-04-04  6:10 ` Heiko Schocher [this message]
2011-04-27 22:52   ` [U-Boot] [PATCH 3/3] mpc52xx, digsy_mtc: protect default flash sectors Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1301897422-27326-4-git-send-email-hs@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox