diff options
author | Roman Kononov <kononov195-lbl@yahoo.com> | 2006-10-07 00:21:13 +0000 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2006-10-07 00:21:13 +0000 |
commit | 41c47676c2e02dddeae229def09abd3e4004da18 (patch) | |
tree | 55228c946f4678de961f24c5eea91b51aaf35a10 /sst49lf040.c | |
parent | de063bf72d3df20fbb1914e7202f4a21983da38e (diff) | |
download | flashrom-41c47676c2e02dddeae229def09abd3e4004da18.tar.gz flashrom-41c47676c2e02dddeae229def09abd3e4004da18.tar.bz2 flashrom-41c47676c2e02dddeae229def09abd3e4004da18.zip |
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>
Diffstat (limited to 'sst49lf040.c')
-rw-r--r-- | sst49lf040.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sst49lf040.c b/sst49lf040.c index 8f1c6b9dc..36537f24d 100644 --- a/sst49lf040.c +++ b/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"); |