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>
diff --git a/w39.c b/w39.c
index e6dc8de..5f0c347 100644
--- a/w39.c
+++ b/w39.c
@@ -278,3 +278,11 @@
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;
+}