diff options
author | Sean Nelson <audiohacked@gmail.com> | 2010-02-19 00:52:10 +0000 |
---|---|---|
committer | Sean Nelson <audiohacked@gmail.com> | 2010-02-19 00:52:10 +0000 |
commit | 6e0b912f469a5595c138b3f7ddad77d691330e2f (patch) | |
tree | 1a47f0ac8bfdb814720ae28cbd96678e7424894b /pm49fl00x.c | |
parent | ce5fad038d2802e6caec11da1bfc7dc9780e7ee5 (diff) | |
download | flashrom-6e0b912f469a5595c138b3f7ddad77d691330e2f.tar.gz flashrom-6e0b912f469a5595c138b3f7ddad77d691330e2f.tar.bz2 flashrom-6e0b912f469a5595c138b3f7ddad77d691330e2f.zip |
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
Corresponding to flashrom svn r907.
Signed-off-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'pm49fl00x.c')
-rw-r--r-- | pm49fl00x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pm49fl00x.c b/pm49fl00x.c index 9d104e275..e8c498d03 100644 --- a/pm49fl00x.c +++ b/pm49fl00x.c @@ -36,6 +36,12 @@ void write_lockbits_49fl00x(chipaddr bios, int size, } } +int unlock_49fl00x(struct flashchip *flash) +{ + write_lockbits_49fl00x(flash->virtual_registers, flash->total_size * 1024, 0, flash->page_size); + return 0; +} + int erase_49fl00x(struct flashchip *flash) { int i; |