Commit 441edbf1 authored by Stefan Reinauer's avatar Stefan Reinauer
Browse files

Make SST49lf040 not clog the serial line too

Corresponding to flashrom svn r48 and coreboot v2 svn r2210.
parent fcb63687
......@@ -60,10 +60,13 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf)
erase_sector_jedec(bios, i * page_size);
/* write to the sector */
printf("%04d at address: 0x%08x ", i, i * page_size);
if(i&0xfff==0xfff)
printf("%04d at address: 0x%08x ", i, i * page_size);
write_sector_jedec(bios, buf + i * page_size,
bios + i * page_size, page_size);
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");
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");
fflush(stdout);
}
printf("\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment