diff options
author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2011-03-06 17:58:05 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2011-03-06 17:58:05 +0000 |
commit | 19e0aacd636eac3fde02a8f5e2b87326656d5812 (patch) | |
tree | de4ff2cc283b98d482fa09e1043dd7e3a306d3cb /w39.c | |
parent | 8262e82d1c215cc92b85a2c2abb16b4cbbba04bb (diff) | |
download | ast2050-flashrom-19e0aacd636eac3fde02a8f5e2b87326656d5812.zip ast2050-flashrom-19e0aacd636eac3fde02a8f5e2b87326656d5812.tar.gz |
Add W39L040
Corresponding to flashrom svn r1268.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
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; |