Author: hailfinger Date: 2009-06-19 06:50:58 +0200 (Fri, 19 Jun 2009) New Revision: 606
Modified: trunk/mx29f002.c Log: Kill dead code which has been disabled since the very first commit of flashrom.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net Acked-by: Ronald G. Minnich rminnich@gmail.com
Modified: trunk/mx29f002.c =================================================================== --- trunk/mx29f002.c 2009-06-18 18:25:39 UTC (rev 605) +++ trunk/mx29f002.c 2009-06-19 04:50:58 UTC (rev 606) @@ -58,19 +58,6 @@ programmer_delay(100); 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)) { fprintf(stderr, "ERASE FAILED!\n"); return -1; @@ -91,8 +78,6 @@ fprintf(stderr, "ERASE FAILED!\n"); return -1; } - //*bios = 0xF0; -#if 1 printf("Programming page: "); for (i = 0; i < total_size; i++) { /* write to the sector */ @@ -109,7 +94,6 @@ if ((i & 0xfff) == 0) printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"); } -#endif printf("\n");
return 0;