Fix A25L40PU and A25L40PT. Thanks to hailfinger's self-check-erase routine for catching this.

Signed-off-by: Sean Nelson <[email protected]>
diff --git a/flashchips.c b/flashchips.c
index 8e90d2a..452cef3 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -1193,78 +1193,78 @@ struct flashchip flashchips[] = {
                .vendor         = "AMIC",
                .name           = "A25L40PU",
                .bustype        = CHIP_BUSTYPE_SPI,
                .manufacture_id = AMIC_ID,
                .model_id       = AMIC_A25L40P,
                .total_size     = 512,
                .page_size      = 256,
                .tested         = TEST_OK_PRW,
                .probe          = probe_spi_rdid4,
                .probe_timing   = TIMING_ZERO,
                .erase          = NULL,
                .block_erasers  =
                {
                        {
                                .eraseblocks = {
                                        {4 * 1024, 2},
                                        {8 * 1024, 1},
                                        {16 * 1024, 1},
                                        {32 * 1024, 1},
                                        {64 * 1024, 7},
                                },
                                .block_erase = spi_block_erase_d8,
                        }, {
-                               .eraseblocks = { {256 * 1024, 1} },
+                               .eraseblocks = { {512 * 1024, 1} },
                                .block_erase = spi_block_erase_c7,
                        }
                },
                .write          = spi_chip_write_256,
                .read           = spi_chip_read,
        },
 
        {
                .vendor         = "AMIC",
                .name           = "A29002B",
                .bustype        = CHIP_BUSTYPE_PARALLEL,
                .manufacture_id = AMIC_ID_NOPREFIX,
                .model_id       = AMIC_A29002B,
                .total_size     = 256,
                .page_size      = 64 * 1024,
                .tested         = TEST_UNTESTED,
                .probe          = probe_29f002,
                .probe_timing   = TIMING_IGNORED, /* routine don't use 
probe_timing (mx29f002.c) */
                .erase          = NULL,
                .block_erasers  =
                {
                        {
                                .eraseblocks = { 
                                        {16 * 1024, 1},
                                        {8 * 1024, 2},
                                        {32 * 1024, 1},
                                        {64 * 1024, 3},
                                },
                                .block_erase = erase_sector_29f002,
                        }, {
-                               .eraseblocks = { {256 * 1024, 1} },
+                               .eraseblocks = { {512 * 1024, 1} },
                                .block_erase = erase_chip_29f002,
                        },
                },
                .write          = write_jedec_1,
                .read           = read_memmapped,
        },
 
        {
                .vendor         = "AMIC",
                .name           = "A29002T",
                .bustype        = CHIP_BUSTYPE_PARALLEL,
                .manufacture_id = AMIC_ID_NOPREFIX,
                .model_id       = AMIC_A29002T,
                .total_size     = 256,
                .page_size      = 64 * 1024,
                .tested         = TEST_OK_PR,
                .probe          = probe_29f002,
                .probe_timing   = TIMING_IGNORED, /* routine don't use 
probe_timing (mx29f002.c) */
                .erase          = NULL,
                .block_erasers  =
                {
                        {
                                .eraseblocks = { 
_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to