summaryrefslogtreecommitdiffstats
path: root/w39v080fa.c
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-03-16 00:45:00 +0000
committerSean Nelson <audiohacked@gmail.com>2010-03-16 00:45:00 +0000
commitffae6ca46862aab833a040e493e709c146a1ba34 (patch)
treebab5462b2d6a9843470dfb9dfaaeca8572ec7c17 /w39v080fa.c
parentba966f6f93ad914f800ba04ffa038aa553c8f7c5 (diff)
downloadflashrom-ffae6ca46862aab833a040e493e709c146a1ba34.tar.gz
flashrom-ffae6ca46862aab833a040e493e709c146a1ba34.tar.bz2
flashrom-ffae6ca46862aab833a040e493e709c146a1ba34.zip
Kill dead w39v080fa.c functions
Corresponding to flashrom svn r940. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'w39v080fa.c')
-rw-r--r--w39v080fa.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/w39v080fa.c b/w39v080fa.c
index 0163766ee..047f86bf7 100644
--- a/w39v080fa.c
+++ b/w39v080fa.c
@@ -111,69 +111,3 @@ int unlock_winbond_fwhub(struct flashchip *flash)
return 0;
}
-
-static int erase_sector_winbond_fwhub(struct flashchip *flash,
- unsigned int sector)
-{
- chipaddr bios = flash->virtual_memory;
- /* Remember: too much sleep can waste your day. */
-
- printf("0x%08x\b\b\b\b\b\b\b\b\b\b", sector);
-
- /* Sector Erase */
- chip_writeb(0xAA, bios + 0x5555);
- chip_writeb(0x55, bios + 0x2AAA);
- chip_writeb(0x80, bios + 0x5555);
-
- chip_writeb(0xAA, bios + 0x5555);
- chip_writeb(0x55, bios + 0x2AAA);
- chip_writeb(0x30, bios + sector);
-
- /* wait for Toggle bit ready */
- toggle_ready_jedec(bios);
-
- if (check_erased_range(flash, sector, flash->page_size)) {
- fprintf(stderr, "ERASE FAILED!\n");
- return -1;
- }
- return 0;
-}
-
-int erase_winbond_fwhub(struct flashchip *flash)
-{
- int i, total_size = flash->total_size * 1024;
-
- unlock_winbond_fwhub(flash);
-
- printf("Erasing: ");
-
- for (i = 0; i < total_size; i += flash->page_size) {
- if (erase_sector_winbond_fwhub(flash, i)) {
- fprintf(stderr, "ERASE FAILED!\n");
- return -1;
- }
- }
-
- printf("\n");
-
- return 0;
-}
-
-int write_winbond_fwhub(struct flashchip *flash, uint8_t *buf)
-{
- int i;
- int total_size = flash->total_size * 1024;
- chipaddr bios = flash->virtual_memory;
-
- if (erase_winbond_fwhub(flash))
- return -1;
-
- printf("Programming: ");
- for (i = 0; i < total_size; i += flash->page_size) {
- printf("0x%08x\b\b\b\b\b\b\b\b\b\b", i);
- write_sector_jedec_common(flash, buf + i, bios + i, flash->page_size, 0xffff);
- }
- printf("\n");
-
- return 0;
-}