mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Fix flashrom for sst49lf080a and small print bug
Corresponding to flashrom svn r64 and coreboot v2 svn r2448. Signed-off-by: Roman Kononov <kononov195-lbl@yahoo.com>. X-Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
parent
de063bf72d
commit
41c47676c2
@ -67,7 +67,7 @@ struct flashchip flashchips[] = {
|
|||||||
{"SST49LF040", SST_ID, SST_49LF040, NULL, 512, 4096,
|
{"SST49LF040", SST_ID, SST_49LF040, NULL, 512, 4096,
|
||||||
probe_jedec, erase_49lf040, write_49lf040,NULL},
|
probe_jedec, erase_49lf040, write_49lf040,NULL},
|
||||||
{"SST49LF080A", SST_ID, SST_49LF080A, NULL, 1024, 4096,
|
{"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,
|
{"SST49LF002A/B", SST_ID, SST_49LF002A, NULL, 256, 16 * 1024,
|
||||||
probe_sst_fwhub, erase_sst_fwhub, write_sst_fwhub, NULL},
|
probe_sst_fwhub, erase_sst_fwhub, write_sst_fwhub, NULL},
|
||||||
{"SST49LF003A/B", SST_ID, SST_49LF003A, NULL, 384, 64 * 1024,
|
{"SST49LF003A/B", SST_ID, SST_49LF003A, NULL, 384, 64 * 1024,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* sst40lf020.c: driver for SST40LF040 flash models.
|
/* sst49lf040.c: driver for SST49LF040 flash models.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Copyright 2000 Silicon Integrated System Corporation
|
* Copyright 2000 Silicon Integrated System Corporation
|
||||||
@ -59,12 +59,11 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf)
|
|||||||
erase_sector_jedec(bios, i * page_size);
|
erase_sector_jedec(bios, i * page_size);
|
||||||
|
|
||||||
/* write to the sector */
|
/* 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,
|
write_sector_jedec(bios, buf + i * page_size,
|
||||||
bios + i * page_size, 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);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user