mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
Unlock fixup
Corresponding to flashrom svn r961. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
parent
fcc4f749f3
commit
46313198d8
@ -97,7 +97,7 @@ int unlock_82802ab(struct flashchip *flash)
|
|||||||
int i;
|
int i;
|
||||||
//chipaddr wrprotect = flash->virtual_registers + page + 2;
|
//chipaddr wrprotect = flash->virtual_registers + page + 2;
|
||||||
|
|
||||||
for (i = 0; i < flash->total_size; i+= flash->page_size)
|
for (i = 0; i < flash->total_size * 1024; i+= flash->page_size)
|
||||||
{
|
{
|
||||||
chip_writeb(0, flash->virtual_registers + i + 2);
|
chip_writeb(0, flash->virtual_registers + i + 2);
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ int unlock_stm50flw0x0x(struct flashchip *flash)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < flash->total_size; i+= flash->page_size) {
|
for (i = 0; i < flash->total_size * 1024; i+= flash->page_size) {
|
||||||
if(unlock_block_stm50flw0x0x(flash, i)) {
|
if(unlock_block_stm50flw0x0x(flash, i)) {
|
||||||
fprintf(stderr, "UNLOCK FAILED!\n");
|
fprintf(stderr, "UNLOCK FAILED!\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user