diff options
author | mkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-03-06 17:58:05 +0000 |
---|---|---|
committer | mkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-03-06 17:58:05 +0000 |
commit | b5d7831ae5c4eadc304b7c1fb510976b76c7bf4b (patch) | |
tree | de4ff2cc283b98d482fa09e1043dd7e3a306d3cb /w39.c | |
parent | 4a517e126e67b03a425893392eb6692d3b6d131e (diff) | |
download | flashrom-b5d7831ae5c4eadc304b7c1fb510976b76c7bf4b.tar.gz |
Add W39L040
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1268 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'w39.c')
-rw-r--r-- | w39.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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; |