summaryrefslogtreecommitdiffstats
path: root/sst49lf040.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-10-21 22:09:02 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-10-21 22:09:02 +0000
commit1b0f61f80b38aa3057468e1d040e28334dafb6ce (patch)
tree443c194a4296d838ab9fda3b3ec7748172d8d704 /sst49lf040.c
parent394131ef1447aa9019f9b03797955fb4fdda74bd (diff)
downloadast2050-flashrom-1b0f61f80b38aa3057468e1d040e28334dafb6ce.zip
ast2050-flashrom-1b0f61f80b38aa3057468e1d040e28334dafb6ce.tar.gz
Reduce serial output, otherwise flashing will fail very often
This has been tested on hardware by me. Corresponding to flashrom svn r327 and coreboot v2 svn r3682. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'sst49lf040.c')
-rw-r--r--sst49lf040.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sst49lf040.c b/sst49lf040.c
index 5528b52..10452bf 100644
--- a/sst49lf040.c
+++ b/sst49lf040.c
@@ -52,12 +52,14 @@ 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 % 10 == 0)
+ 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 % 10 == 0)
+ 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");
OpenPOWER on IntegriCloud