summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-02-19 00:52:10 +0000
committerSean Nelson <audiohacked@gmail.com>2010-02-19 00:52:10 +0000
commit6e0b912f469a5595c138b3f7ddad77d691330e2f (patch)
tree1a47f0ac8bfdb814720ae28cbd96678e7424894b /chipdrivers.h
parentce5fad038d2802e6caec11da1bfc7dc9780e7ee5 (diff)
downloadflashrom-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 'chipdrivers.h')
-rw-r--r--chipdrivers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index c5062cab8..e262c2d18 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -117,6 +117,7 @@ int write_29f002(struct flashchip *flash, uint8_t *buf);
int probe_49fl00x(struct flashchip *flash);
int erase_49fl00x(struct flashchip *flash);
int write_49fl00x(struct flashchip *flash, uint8_t *buf);
+int unlock_49fl00x(struct flashchip *flash);
/* sharplhf00l04.c */
int probe_lhf00l04(struct flashchip *flash);
@@ -145,6 +146,7 @@ int erase_sector_49lfxxxc(struct flashchip *flash, unsigned int address, unsigne
int erase_block_49lfxxxc(struct flashchip *flash, unsigned int address, unsigned int sector_size);
int erase_chip_49lfxxxc(struct flashchip *flash, unsigned int addr, unsigned int blocksize);
int write_49lfxxxc(struct flashchip *flash, uint8_t *buf);
+int unlock_49lfxxxc(struct flashchip *flash);
/* sst_fwhub.c */
int probe_sst_fwhub(struct flashchip *flash);
@@ -157,11 +159,13 @@ int write_sst_fwhub(struct flashchip *flash, uint8_t *buf);
int probe_w39v040c(struct flashchip *flash);
int erase_w39v040c(struct flashchip *flash);
int write_w39v040c(struct flashchip *flash, uint8_t *buf);
+int printlock_w39v040c(struct flashchip *flash);
/* w39V080fa.c */
int probe_winbond_fwhub(struct flashchip *flash);
int erase_winbond_fwhub(struct flashchip *flash);
int write_winbond_fwhub(struct flashchip *flash, uint8_t *buf);
+int unlock_winbond_fwhub(struct flashchip *flash);
/* w29ee011.c */
int probe_w29ee011(struct flashchip *flash);