[flashrom] [commit] r1248 - trunk
repository service
svn at flashrom.org
Mon Dec 27 00:55:13 CET 2010
Author: mkarcher
Date: Mon Dec 27 00:55:12 2010
New Revision: 1248
URL: http://flashrom.org/trac/flashrom/changeset/1248
Log:
enable unlocking (erasing/writing) W39V040FB chips
Add code for the unlocking (erasing/writing) of Winbond W39V040FB
chips, enabling erasing/writing this type of chip.
Signed-off-by: Idwer Vollering <vidwer at gmail.com>
Acked-by: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
Modified:
trunk/chipdrivers.h
trunk/flashchips.c
trunk/w39.c
Modified: trunk/chipdrivers.h
==============================================================================
--- trunk/chipdrivers.h Tue Dec 14 00:54:59 2010 (r1247)
+++ trunk/chipdrivers.h Mon Dec 27 00:55:12 2010 (r1248)
@@ -119,6 +119,7 @@
int printlock_w39v080a(struct flashchip *flash);
int printlock_w39v080fa(struct flashchip *flash);
int printlock_w39v080fa_dual(struct flashchip *flash);
+int unlock_w39v040fb(struct flashchip *flash);
int unlock_w39v080fa(struct flashchip *flash);
/* w29ee011.c */
Modified: trunk/flashchips.c
==============================================================================
--- trunk/flashchips.c Tue Dec 14 00:54:59 2010 (r1247)
+++ trunk/flashchips.c Mon Dec 27 00:55:12 2010 (r1248)
@@ -7706,6 +7706,7 @@
}
},
.printlock = printlock_w39v040fb,
+ .unlock = unlock_w39v040fb,
.write = write_jedec_1,
.read = read_memmapped,
},
Modified: trunk/w39.c
==============================================================================
--- trunk/w39.c Tue Dec 14 00:54:59 2010 (r1247)
+++ trunk/w39.c Mon Dec 27 00:55:12 2010 (r1248)
@@ -244,6 +244,16 @@
return -1;
}
+int unlock_w39v040fb(struct flashchip *flash)
+{
+ if (unlock_w39_fwh(flash))
+ return -1;
+ if (printlock_w39_common(flash, 0x7fff2))
+ return -1;
+
+ return 0;
+}
+
int unlock_w39v080fa(struct flashchip *flash)
{
if (unlock_w39_fwh(flash))
More information about the flashrom
mailing list