mirror of
https://review.coreboot.org/flashrom.git
synced 2025-10-26 02:50:40 +01:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user