Author: stefanct
Date: Mon Aug  1 20:39:28 2011
New Revision: 1402
URL: http://flashrom.org/trac/flashrom/changeset/1402

Log:
Switch to AAI for some more SST chips

Enable AAI for:
SST25VF016B
SST25VF040B{,.REMS}
SST25VF080B

Chips that support AAI via a different opcode are annotated with a comment:
SST25VF040.REMS
SST25LF040A.RES

SST25VF080B
Tested-by: Joshua Roys <[email protected]>
Write time (w/erase) went from 46 s to 21 s.

SST25VF016B
Tested-by: Noé Rubinstein <[email protected]>
Write time (w/erase) on a dediprog went from 143 mins to 56 mins.

Signed-off-by: Joshua Roys <[email protected]>
Rebased and
Acked-by: Noé Rubinstein <[email protected]>

Modified:
   trunk/flashchips.c

Modified: trunk/flashchips.c
==============================================================================
--- trunk/flashchips.c  Fri Jul 29 22:13:45 2011        (r1401)
+++ trunk/flashchips.c  Mon Aug  1 20:39:28 2011        (r1402)
@@ -5606,7 +5606,7 @@
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
                .voltage        = {2700, 3600},
        },
@@ -5708,7 +5708,7 @@
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_chip_write_1, /* AAI supported, but 
opcode is 0xAF */
                .read           = spi_chip_read,
                .voltage        = {2700, 3600},
        },
@@ -5744,7 +5744,7 @@
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
                .voltage        = {2700, 3600},
        },
@@ -5774,7 +5774,7 @@
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_chip_write_1, /* AAI supported, but 
opcode is 0xAF */
                .read           = spi_chip_read,
                .voltage        = {3000, 3600},
        },
@@ -5810,7 +5810,7 @@
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
                .voltage        = {2700, 3600},
        },
@@ -5846,7 +5846,7 @@
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
                .voltage        = {2700, 3600},
        },

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

Reply via email to