mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Kill dead code which has been disabled since the very first commit of flashrom
Corresponding to flashrom svn r606. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
24bd1bdac5
commit
d0c2ed9584
16
mx29f002.c
16
mx29f002.c
@ -58,19 +58,6 @@ int erase_29f002(struct flashchip *flash)
|
|||||||
programmer_delay(100);
|
programmer_delay(100);
|
||||||
toggle_ready_jedec(bios);
|
toggle_ready_jedec(bios);
|
||||||
|
|
||||||
// while ((*bios & 0x40) != 0x40)
|
|
||||||
//;
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
toggle_ready_jedec(bios);
|
|
||||||
chip_writeb(0x30, bios + 0x0ffff);
|
|
||||||
chip_writeb(0x30, bios + 0x1ffff);
|
|
||||||
chip_writeb(0x30, bios + 0x2ffff);
|
|
||||||
chip_writeb(0x30, bios + 0x37fff);
|
|
||||||
chip_writeb(0x30, bios + 0x39fff);
|
|
||||||
chip_writeb(0x30, bios + 0x3bfff);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (check_erased_range(flash, 0, flash->total_size * 1024)) {
|
if (check_erased_range(flash, 0, flash->total_size * 1024)) {
|
||||||
fprintf(stderr, "ERASE FAILED!\n");
|
fprintf(stderr, "ERASE FAILED!\n");
|
||||||
return -1;
|
return -1;
|
||||||
@ -91,8 +78,6 @@ int write_29f002(struct flashchip *flash, uint8_t *buf)
|
|||||||
fprintf(stderr, "ERASE FAILED!\n");
|
fprintf(stderr, "ERASE FAILED!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
//*bios = 0xF0;
|
|
||||||
#if 1
|
|
||||||
printf("Programming page: ");
|
printf("Programming page: ");
|
||||||
for (i = 0; i < total_size; i++) {
|
for (i = 0; i < total_size; i++) {
|
||||||
/* write to the sector */
|
/* write to the sector */
|
||||||
@ -109,7 +94,6 @@ int write_29f002(struct flashchip *flash, uint8_t *buf)
|
|||||||
if ((i & 0xfff) == 0)
|
if ((i & 0xfff) == 0)
|
||||||
printf("\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");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user