* [Qemu-devel] [4930] Add OneNAND Unlock All command (Kyungmin Park).
@ 2008-07-23 16:35 Andrzej Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-07-23 16:35 UTC (permalink / raw)
To: qemu-devel
Revision: 4930
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4930
Author: balrog
Date: 2008-07-23 16:35:45 +0000 (Wed, 23 Jul 2008)
Log Message:
-----------
Add OneNAND Unlock All command (Kyungmin Park).
Modified Paths:
--------------
trunk/hw/onenand.c
Modified: trunk/hw/onenand.c
===================================================================
--- trunk/hw/onenand.c 2008-07-23 16:16:31 UTC (rev 4929)
+++ trunk/hw/onenand.c 2008-07-23 16:35:45 UTC (rev 4930)
@@ -355,6 +355,21 @@
s->wpstatus = s->blockwp[b] = ONEN_LOCK_UNLOCKED;
}
break;
+ case 0x27: /* Unlock All NAND array blocks */
+ s->intstatus |= ONEN_INT;
+
+ for (b = 0; b < s->blocks; b ++) {
+ if (b >= s->blocks) {
+ s->status |= ONEN_ERR_CMD;
+ break;
+ }
+ if (s->blockwp[b] == ONEN_LOCK_LOCKTIGHTEN)
+ break;
+
+ s->wpstatus = s->blockwp[b] = ONEN_LOCK_UNLOCKED;
+ }
+ break;
+
case 0x2a: /* Lock NAND array block(s) */
s->intstatus |= ONEN_INT;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-23 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 16:35 [Qemu-devel] [4930] Add OneNAND Unlock All command (Kyungmin Park) Andrzej Zaborowski
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).