summaryrefslogtreecommitdiff
path: root/w39.c
diff options
context:
space:
mode:
authoruwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-04-15 13:16:32 +0000
committeruwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-04-15 13:16:32 +0000
commit319514d350a7931ce9860499083cafdf37beb9a5 (patch)
tree815a620645ca472bccc630476073106250f8ff2e /w39.c
parent9fd18dbe03fde4e2525fca1899024c177b420df4 (diff)
downloadflashrom-319514d350a7931ce9860499083cafdf37beb9a5.tar.gz
Add support for for the Atmel AT49F040 chip.
Chip features an optional permanent boot block write protection. Signed-off-by: David Borg <borg.db@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'w39.c')
-rw-r--r--w39.c8
1 files changed, 8 insertions, 0 deletions
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;
+}