Someone tried to erase the MX25L1605 but the block erasers were incorrect. This should fix it.

Signed-off-by: Sean Nelson <[email protected]>

diff --git a/flashchips.c b/flashchips.c
index 70954b8..782ac01 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -2606,32 +2606,29 @@ struct flashchip flashchips[] = {
                .name           = "MX25L1605",
                .bustype        = CHIP_BUSTYPE_SPI,
                .manufacture_id = MX_ID,
                .model_id       = MX_25L1605,
                .total_size     = 2048,
                .page_size      = 256,
                .tested         = TEST_OK_PRW,
                .probe          = probe_spi_rdid,
                .probe_timing   = TIMING_ZERO,
                .erase          = NULL,
                .block_erasers  =
                {
                        {
-                               .eraseblocks = { {4 * 1024, 512} },
+                               .eraseblocks = { {64 * 1024, 32} },
                                .block_erase = spi_block_erase_20,      /* This 
erase function has 64k blocksize for eLiteFlash */
                        }, {
-                               .eraseblocks = { {64 * 1024, 32} },     /* Not 
supported in MX25L1605 (eLiteFlash) and MX25L1605D */
-                               .block_erase = spi_block_erase_52,
-                       }, {
                                .eraseblocks = { {64 * 1024, 32} },
                                .block_erase = spi_block_erase_d8,
                        }, {
                                .eraseblocks = { {2 * 1024 * 1024, 1} },
                                .block_erase = spi_block_erase_60,
                        }, {
                                .eraseblocks = { {2 * 1024 * 1024, 1} },
                                .block_erase = spi_block_erase_c7,
                        },
                },
                .write          = spi_chip_write_256,
                .read           = spi_chip_read,
        },
_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to