Signed-off-by: Sean Nelson <[email protected]>
---
 sst28sf040.c |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/sst28sf040.c b/sst28sf040.c
index bbb9d56..0c90526 100644
--- a/sst28sf040.c
+++ b/sst28sf040.c
@@ -82,50 +82,26 @@ int write_sector_28sf040(chipaddr bios, uint8_t *src, 
chipaddr dst,
                        continue;
                }
                /*issue AUTO PROGRAM command */
                chip_writeb(AUTO_PGRM, dst);
                chip_writeb(*src++, dst++);
 
                /* wait for Toggle bit ready */
                toggle_ready_jedec(bios);
        }
 
        return 0;
 }
 
-int probe_28sf040(struct flashchip *flash)
-{
-       chipaddr bios = flash->virtual_memory;
-       uint8_t id1, id2;
-
-       chip_writeb(RESET, bios);
-       programmer_delay(10);
-
-       chip_writeb(READ_ID, bios);
-       programmer_delay(10);
-       id1 = chip_readb(bios);
-       programmer_delay(10);
-       id2 = chip_readb(bios + 0x01);
-
-       chip_writeb(RESET, bios);
-       programmer_delay(10);
-
-       printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __func__, id1, id2);
-       if (id1 == flash->manufacture_id && id2 == flash->model_id)
-               return 1;
-
-       return 0;
-}
-
 int erase_28sf040(struct flashchip *flash)
 {
        chipaddr bios = flash->virtual_memory;
 
        unprotect_28sf040(bios);
        chip_writeb(CHIP_ERASE, bios);
        chip_writeb(CHIP_ERASE, bios);
        protect_28sf040(bios);
 
        programmer_delay(10);
        toggle_ready_jedec(bios);
 
        if (check_erased_range(flash, 0, flash->total_size * 1024)) {
-- 
1.6.6


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to