1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

Add support for for the Atmel AT49F040 chip

Chip features an optional permanent boot block write protection.

Corresponding to flashrom svn r1522.

Signed-off-by: David Borg <borg.db@gmail.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
David Borg
2012-04-15 13:16:32 +00:00
committed by Uwe Hermann
parent 47eff6b5b4
commit f5a30f65ad
4 changed files with 74 additions and 26 deletions

8
w39.c
View File

@ -278,3 +278,11 @@ int unlock_w39v080fa(struct flashctx *flash)
return 0;
}
int printlock_at49f(struct flashctx *flash)
{
uint8_t lock = w39_idmode_readb(flash, 0x00002);
msg_cdbg("Hardware bootblock lockout is %sactive.\n",
(lock & 0x01) ? "" : "not ");
return 0;
}