Commit ecc67072 authored by Idwer Vollering's avatar Idwer Vollering Committed by Michael Karcher
Browse files

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: default avatarIdwer Vollering <vidwer@gmail.com>
Acked-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
parent 22e0532c
......@@ -119,6 +119,7 @@ int printlock_w39v040fc(struct flashchip *flash);
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 */
......
......@@ -7706,6 +7706,7 @@ struct flashchip flashchips[] = {
}
},
.printlock = printlock_w39v040fb,
.unlock = unlock_w39v040fb,
.write = write_jedec_1,
.read = read_memmapped,
},
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment