linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mxc_nand: preset_v1_v2: unlock all NAND flash blocks
@ 2011-09-23 11:53 Michael Thalmeier
  2011-09-26  7:03 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Thalmeier @ 2011-09-23 11:53 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Sascha Hauer, linux-mtd, linux-kernel

From: Wolfram Stering <wolfram.stering@hale.at>

For NFC v1, the unlock end block address was 0x4000, which would only
unlock the first 32 blocks of the NAND flash.  Change that value to
0xffff to unlock all available blocks, as is done for NFC v21 as well.

Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
---
 drivers/mtd/nand/mxc_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 90df34c..5b40786 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -849,7 +849,7 @@ static void preset_v1_v2(struct mtd_info *mtd)
 		writew(0xffff, NFC_V21_UNLOCKEND_BLKADDR3);
 	} else if (nfc_is_v1()) {
 		writew(0x0, NFC_V1_UNLOCKSTART_BLKADDR);
-		writew(0x4000, NFC_V1_UNLOCKEND_BLKADDR);
+		writew(0xffff, NFC_V1_UNLOCKEND_BLKADDR);
 	} else
 		BUG();
 
-- 
1.7.6.2



--
Scanned by MailScanner.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mxc_nand: preset_v1_v2: unlock all NAND flash blocks
  2011-09-23 11:53 [PATCH] mxc_nand: preset_v1_v2: unlock all NAND flash blocks Michael Thalmeier
@ 2011-09-26  7:03 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-09-26  7:03 UTC (permalink / raw)
  To: Michael Thalmeier; +Cc: linux-mtd, Sascha Hauer, David Woodhouse, linux-kernel

On Fri, 2011-09-23 at 13:53 +0200, Michael Thalmeier wrote:
> From: Wolfram Stering <wolfram.stering@hale.at>
> 
> For NFC v1, the unlock end block address was 0x4000, which would only
> unlock the first 32 blocks of the NAND flash.  Change that value to
> 0xffff to unlock all available blocks, as is done for NFC v21 as well.
> 
> Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>

Pushed to l2-mtd-2.6.git tree, thanks!

-- 
Best Regards,
Artem Bityutskiy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-26  7:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 11:53 [PATCH] mxc_nand: preset_v1_v2: unlock all NAND flash blocks Michael Thalmeier
2011-09-26  7:03 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).