From 6e0b912f469a5595c138b3f7ddad77d691330e2f Mon Sep 17 00:00:00 2001 From: Sean Nelson Date: Fri, 19 Feb 2010 00:52:10 +0000 Subject: 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 Acked-by: Michael Karcher --- flash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 1474a388e..1378b6129 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); -- cgit v1.2.3