summaryrefslogtreecommitdiffstats
path: root/flash.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 /flash.h
parentce5fad038d2802e6caec11da1bfc7dc9780e7ee5 (diff)
downloadast2050-flashrom-6e0b912f469a5595c138b3f7ddad77d691330e2f.zip
ast2050-flashrom-6e0b912f469a5595c138b3f7ddad77d691330e2f.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 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 'flash.h')
-rw-r--r--flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 1474a38..1378b61 100644
--- a/flash.h
+++ b/flash.h
@@ -206,6 +206,8 @@ struct flashchip {
int (*block_erase) (struct flashchip *flash, unsigned int blockaddr, unsigned int blocklen);
} block_erasers[NUM_ERASEFUNCTIONS];
+ int (*printlock) (struct flashchip *flash);
+ int (*unlock) (struct flashchip *flash);
int (*write) (struct flashchip *flash, uint8_t *buf);
int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len);
OpenPOWER on IntegriCloud