summaryrefslogtreecommitdiff
path: root/sst49lfxxxc.c
diff options
context:
space:
mode:
authorsnelson <snelson@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-02-19 00:52:10 +0000
committersnelson <snelson@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-02-19 00:52:10 +0000
commit1df8efc3f6041221aadfb47877c95b083098648d (patch)
tree1a47f0ac8bfdb814720ae28cbd96678e7424894b /sst49lfxxxc.c
parentc86290580bb0dec141520a89543dbb6a7e7c311e (diff)
downloadflashrom-1df8efc3f6041221aadfb47877c95b083098648d.tar.gz
Here's a very quick patch to fix the missing unlock code.
Fixes missing unlock for certain chips: * unlock_49lf00x * Pm49fl002 * Pm49fl004 * unlock_49flxxxc * SST49LF160C * unlock_winbond_fwhub * W39V080FA * W39V080FA (dual mode) Fixes missing printlock for certain chip: * printlock_w39v040c * W39V040C Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@907 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'sst49lfxxxc.c')
-rw-r--r--sst49lfxxxc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c
index 80e5520..a65450e 100644
--- a/sst49lfxxxc.c
+++ b/sst49lfxxxc.c
@@ -82,6 +82,11 @@ static int write_lockbits_49lfxxxc(struct flashchip *flash, unsigned char bits)
return 0;
}
+int unlock_49lfxxxc(struct flashchip *flash)
+{
+ return write_lockbits_49lfxxxc(flash, 0);
+}
+
int erase_sector_49lfxxxc(struct flashchip *flash, unsigned int address, unsigned int sector_size)
{
unsigned char status;