From 19e0aacd636eac3fde02a8f5e2b87326656d5812 Mon Sep 17 00:00:00 2001 From: Michael Karcher Date: Sun, 6 Mar 2011 17:58:05 +0000 Subject: Add W39L040 Corresponding to flashrom svn r1268. Signed-off-by: Michael Karcher Acked-by: Carl-Daniel Hailfinger --- w39.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'w39.c') diff --git a/w39.c b/w39.c index 06fabfd..2635988 100644 --- a/w39.c +++ b/w39.c @@ -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; -- cgit v1.1