Fix flashrom for sst49lf080a and small print bug,
by Roman Kononov <kononov195-lbl@yahoo.com>. X-Signed-Off-By: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2448 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
ebafa4df42
commit
f694db9380
@@ -1,4 +1,4 @@
|
||||
/* sst40lf020.c: driver for SST40LF040 flash models.
|
||||
/* sst49lf040.c: driver for SST49LF040 flash models.
|
||||
*
|
||||
*
|
||||
* Copyright 2000 Silicon Integrated System Corporation
|
||||
@@ -59,13 +59,12 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf)
|
||||
erase_sector_jedec(bios, i * page_size);
|
||||
|
||||
/* write to the sector */
|
||||
if((i&0xfff)==0xfff)
|
||||
printf("%04d at address: 0x%08x ", i, i * page_size);
|
||||
printf("%04d at address: 0x%08x ", i, i * page_size);
|
||||
|
||||
write_sector_jedec(bios, buf + i * page_size,
|
||||
bios + i * page_size, page_size);
|
||||
if((i&0xfff)==0xfff)
|
||||
printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
||||
|
||||
printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
||||
fflush(stdout);
|
||||
}
|
||||
printf("\n");
|
||||
|
Reference in New Issue
Block a user