summaryrefslogtreecommitdiff
path: root/w39.c
diff options
context:
space:
mode:
authormkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-12-26 23:55:12 +0000
committermkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-12-26 23:55:12 +0000
commit5727cd715b349d88c89bc7d5c2d0a19f70dd156d (patch)
tree69685a03cdb842eecd5c89b12cbfc425f70b4627 /w39.c
parent92e43bab472b9f3043bab07e3f7f62894d4c094f (diff)
downloadflashrom-5727cd715b349d88c89bc7d5c2d0a19f70dd156d.tar.gz
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@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1248 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'w39.c')
-rw-r--r--w39.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/w39.c b/w39.c
index 65cf32f..06fabfd 100644
--- a/w39.c
+++ b/w39.c
@@ -244,6 +244,16 @@ int printlock_w39v080fa_dual(struct flashchip *flash)
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))