1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

Add W39L040

Corresponding to flashrom svn r1268.

Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Michael Karcher
2011-03-06 17:58:05 +00:00
parent 8262e82d1c
commit 19e0aacd63
3 changed files with 47 additions and 0 deletions

16
w39.c
View File

@ -161,6 +161,22 @@ static int unlock_w39_fwh(struct flashchip *flash)
return 0;
}
int printlock_w39l040(struct flashchip * flash)
{
uint8_t lock;
int ret;
lock = w39_idmode_readb(flash, 0x00002);
msg_cdbg("Bottom boot block:\n");
ret = printlock_w39_bootblock_64k16k(lock);
lock = w39_idmode_readb(flash, 0x7fff2);
msg_cdbg("Top boot block:\n");
ret |= printlock_w39_bootblock_64k16k(lock);
return ret;
}
int printlock_w39v040a(struct flashchip *flash)
{
uint8_t lock;