From 87955bf478698768aaf09aee49f20dc290048340 Mon Sep 17 00:00:00 2001 From: Joshua Roys Date: Mon, 1 Aug 2011 18:39:28 +0000 Subject: Switch to AAI for some more SST chips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Write time (w/erase) went from 46 s to 21 s. SST25VF016B Tested-by: Noé Rubinstein Write time (w/erase) on a dediprog went from 143 mins to 56 mins. Corresponding to flashrom svn r1402. Signed-off-by: Joshua Roys Rebased and Acked-by: Noé Rubinstein --- flashchips.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flashchips.c b/flashchips.c index a040e8c8..1a5622f7 100644 --- a/flashchips.c +++ b/flashchips.c @@ -5606,7 +5606,7 @@ const struct flashchip flashchips[] = { }, }, .unlock = spi_disable_blockprotect, - .write = spi_chip_write_1, + .write = spi_aai_write, .read = spi_chip_read, .voltage = {2700, 3600}, }, @@ -5708,7 +5708,7 @@ const struct flashchip flashchips[] = { }, }, .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 @@ const struct flashchip flashchips[] = { }, }, .unlock = spi_disable_blockprotect, - .write = spi_chip_write_1, + .write = spi_aai_write, .read = spi_chip_read, .voltage = {2700, 3600}, }, @@ -5774,7 +5774,7 @@ const struct flashchip flashchips[] = { }, }, .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 @@ const struct flashchip flashchips[] = { }, }, .unlock = spi_disable_blockprotect, - .write = spi_chip_write_1, + .write = spi_aai_write, .read = spi_chip_read, .voltage = {2700, 3600}, }, @@ -5846,7 +5846,7 @@ const struct flashchip flashchips[] = { }, }, .unlock = spi_disable_blockprotect, - .write = spi_chip_write_1, + .write = spi_aai_write, .read = spi_chip_read, .voltage = {2700, 3600}, }, -- cgit v1.2.3