summaryrefslogtreecommitdiff
path: root/util/flashrom/sst49lf040.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2006-03-17 22:35:56 +0000
committerStefan Reinauer <stepan@openbios.org>2006-03-17 22:35:56 +0000
commitf4001cd8a7d1e578e22a391150c4c446e13157c0 (patch)
tree89edaf485568fab113112a3269558f0a8043f4a9 /util/flashrom/sst49lf040.c
parent042f0430d3905786620b3e74ffb8d48ea551b20c (diff)
downloadcoreboot-f4001cd8a7d1e578e22a391150c4c446e13157c0.tar.xz
update dumpmmcr.c utility
another flash chip that doesn't clog the serial line git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2210 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/sst49lf040.c')
-rw-r--r--util/flashrom/sst49lf040.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/flashrom/sst49lf040.c b/util/flashrom/sst49lf040.c
index 377b74fa2a..641521a457 100644
--- a/util/flashrom/sst49lf040.c
+++ b/util/flashrom/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");