1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

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>
This commit is contained in:
Idwer Vollering 2010-12-26 23:55:12 +00:00 committed by Michael Karcher
parent 22e0532caf
commit ecc67072b6
3 changed files with 12 additions and 0 deletions

View File

@ -119,6 +119,7 @@ int printlock_w39v040fc(struct flashchip *flash);
int printlock_w39v080a(struct flashchip *flash); int printlock_w39v080a(struct flashchip *flash);
int printlock_w39v080fa(struct flashchip *flash); int printlock_w39v080fa(struct flashchip *flash);
int printlock_w39v080fa_dual(struct flashchip *flash); int printlock_w39v080fa_dual(struct flashchip *flash);
int unlock_w39v040fb(struct flashchip *flash);
int unlock_w39v080fa(struct flashchip *flash); int unlock_w39v080fa(struct flashchip *flash);
/* w29ee011.c */ /* w29ee011.c */

View File

@ -7706,6 +7706,7 @@ struct flashchip flashchips[] = {
} }
}, },
.printlock = printlock_w39v040fb, .printlock = printlock_w39v040fb,
.unlock = unlock_w39v040fb,
.write = write_jedec_1, .write = write_jedec_1,
.read = read_memmapped, .read = read_memmapped,
}, },

10
w39.c
View File

@ -244,6 +244,16 @@ int printlock_w39v080fa_dual(struct flashchip *flash)
return -1; 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) int unlock_w39v080fa(struct flashchip *flash)
{ {
if (unlock_w39_fwh(flash)) if (unlock_w39_fwh(flash))