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
Index: flashrom-mx29f002_kill_dead_code/mx29f002.c =================================================================== --- flashrom-mx29f002_kill_dead_code/mx29f002.c (Revision 603) +++ flashrom-mx29f002_kill_dead_code/mx29f002.c (Arbeitskopie) @@ -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;
On 18.06.2009 20:12, ron minnich wrote:
Acked-by: Ronald G. Minnich rminnich@gmail.com
Thanks, committed in r606.
Regards, Carl-Daniel