summaryrefslogtreecommitdiffstats
path: root/sst49lf040.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2006-03-17 22:35:56 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2006-03-17 22:35:56 +0000
commit441edbf129a9ea32af59a424eed9592a7ac20fa1 (patch)
tree6a0d488504d3adf05efa9659cb99fa0a1132d9c1 /sst49lf040.c
parentfcb63687dacdedf409dbc8b8d6c80be775d3a4ac (diff)
downloadast2050-flashrom-441edbf129a9ea32af59a424eed9592a7ac20fa1.zip
ast2050-flashrom-441edbf129a9ea32af59a424eed9592a7ac20fa1.tar.gz
Make SST49lf040 not clog the serial line too
Corresponding to flashrom svn r48 and coreboot v2 svn r2210.
Diffstat (limited to 'sst49lf040.c')
-rw-r--r--sst49lf040.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sst49lf040.c b/sst49lf040.c
index 377b74f..641521a 100644
--- a/sst49lf040.c
+++ b/sst49lf040.c
@@ -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");
OpenPOWER on IntegriCloud