From 319514d350a7931ce9860499083cafdf37beb9a5 Mon Sep 17 00:00:00 2001 From: uwe Date: Sun, 15 Apr 2012 13:16:32 +0000 Subject: Add support for for the Atmel AT49F040 chip. Chip features an optional permanent boot block write protection. Signed-off-by: David Borg Signed-off-by: Stefan Tauner Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- w39.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'w39.c') diff --git a/w39.c b/w39.c index e6dc8de..5f0c347 100644 --- a/w39.c +++ b/w39.c @@ -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; +} -- cgit v1.2.1