1
0
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:
Sean Nelson 2010-03-20 15:15:36 +00:00
parent fcc4f749f3
commit 46313198d8
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ int unlock_82802ab(struct flashchip *flash)
int i;
//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);
}

View File

@ -85,7 +85,7 @@ int unlock_stm50flw0x0x(struct flashchip *flash)
{
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)) {
fprintf(stderr, "UNLOCK FAILED!\n");
return -1;