From ecc67072b63430877e160da628f69a2ef2f34735 Mon Sep 17 00:00:00 2001 From: Idwer Vollering Date: Sun, 26 Dec 2010 23:55:12 +0000 Subject: 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 Acked-by: Michael Karcher --- w39.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'w39.c') diff --git a/w39.c b/w39.c index 65cf32f4..06fabfda 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)) -- cgit v1.2.3