[LinuxBIOS] r2448 - trunk/LinuxBIOSv2/util/flashrom
svn at openbios.org
svn at openbios.org
Sat Oct 7 02:21:13 CEST 2006
Author: stepan
Date: 2006-10-07 02:21:13 +0200 (Sat, 07 Oct 2006)
New Revision: 2448
Modified:
trunk/LinuxBIOSv2/util/flashrom/flashchips.c
trunk/LinuxBIOSv2/util/flashrom/sst49lf040.c
Log:
Fix flashrom for sst49lf080a and small print bug,
by Roman Kononov <kononov195-lbl at yahoo.com>.
X-Signed-Off-By: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/LinuxBIOSv2/util/flashrom/flashchips.c
===================================================================
--- trunk/LinuxBIOSv2/util/flashrom/flashchips.c 2006-10-07 00:13:24 UTC (rev 2447)
+++ trunk/LinuxBIOSv2/util/flashrom/flashchips.c 2006-10-07 00:21:13 UTC (rev 2448)
@@ -67,7 +67,7 @@
{"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,
Modified: trunk/LinuxBIOSv2/util/flashrom/sst49lf040.c
===================================================================
--- trunk/LinuxBIOSv2/util/flashrom/sst49lf040.c 2006-10-07 00:13:24 UTC (rev 2447)
+++ trunk/LinuxBIOSv2/util/flashrom/sst49lf040.c 2006-10-07 00:21:13 UTC (rev 2448)
@@ -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 @@
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");
More information about the coreboot
mailing list