diff options
author | Idwer Vollering <vidwer@gmail.com> | 2010-12-26 23:55:12 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-12-26 23:55:12 +0000 |
commit | ecc67072b63430877e160da628f69a2ef2f34735 (patch) | |
tree | 69685a03cdb842eecd5c89b12cbfc425f70b4627 /w39.c | |
parent | 22e0532caf883b84743c80c4dce24f2ef1fcecae (diff) | |
download | flashrom-ecc67072b63430877e160da628f69a2ef2f34735.tar.gz flashrom-ecc67072b63430877e160da628f69a2ef2f34735.tar.bz2 flashrom-ecc67072b63430877e160da628f69a2ef2f34735.zip |
Enable unlocking (erasing/writing) W39V040FB chips
Add code for the unlocking (erasing/writing) of Winbond W39V040FB
chips, enabling erasing/writing this type of chip.
Corresponding to flashrom svn r1248.
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'w39.c')
-rw-r--r-- | w39.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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)) |