summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2006-10-07 00:21:13 +0000
committerStefan Reinauer <stepan@openbios.org>2006-10-07 00:21:13 +0000
commitf694db93807fbda6d7ed60378f1046a1cdf3aa97 (patch)
tree37538a38c9da55d41693d1d8a189cd80b7ab5aca /util/flashrom
parentebafa4df425445a63725ce23b7d40dab6d5e99cd (diff)
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
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/flashchips.c2
-rw-r--r--util/flashrom/sst49lf040.c9
2 files changed, 5 insertions, 6 deletions
diff --git a/util/flashrom/flashchips.c b/util/flashrom/flashchips.c
index dd937a74e1..9b55f4d6d3 100644
--- a/util/flashrom/flashchips.c
+++ b/util/flashrom/flashchips.c
@@ -67,7 +67,7 @@ struct flashchip flashchips[] = {
{"SST49LF040", SST_ID, SST_49LF040, NULL, 512, 4096,
probe_jedec, erase_49lf040, write_49lf040,NULL},
{"SST49LF080A", SST_ID, SST_49LF080A, NULL, 1024, 4096,
- probe_jedec, erase_chip_jedec, write_49lf040,NULL},
+ probe_jedec, erase_49lf040, write_49lf040,NULL},
{"SST49LF002A/B", SST_ID, SST_49LF002A, NULL, 256, 16 * 1024,
probe_sst_fwhub, erase_sst_fwhub, write_sst_fwhub, NULL},
{"SST49LF003A/B", SST_ID, SST_49LF003A, NULL, 384, 64 * 1024,
diff --git a/util/flashrom/sst49lf040.c b/util/flashrom/sst49lf040.c
index 8f1c6b9dc0..36537f24de 100644
--- a/util/flashrom/sst49lf040.c
+++ b/util/flashrom/sst49lf040.c
@@ -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");