Hello,

Attached is a patch to switch a few more chips to AAI write. A comment is added to two entries due to the datasheets claiming AAI support but via a different opcode. I was able to test programming on one chip and the write time was more than halved.

Signed-off-by: Joshua Roys <[email protected]>

Josh
>From ae945e913f11c7c9c30036f767655ee1cc8f46da Mon Sep 17 00:00:00 2001
From: Joshua Roys <[email protected]>
Date: Wed, 6 Oct 2010 16:27:54 -0400
Subject: [PATCH] Switch to AAI for some more SST chips

Tested on a SST25VF080B.  Write time (w/erase) went from 46s to 21s.

Use AAI:
SST25VF016B
SST25VF040B{,.REMS}
SST25VF080B

Datasheets say AAI is supported, but via a different opcode:
SST25VF040.REMS
SST25LF040A.RES

Signed-off-by: Joshua Roys <[email protected]>
---
 flashchips.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/flashchips.c b/flashchips.c
index c0280b3..a02f710 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -4848,7 +4848,7 @@ struct flashchip flashchips[] = {
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
        },
 
@@ -4947,7 +4947,7 @@ struct flashchip flashchips[] = {
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_chip_write_1, /* datasheet says AAI using 
0xAF ? */
                .read           = spi_chip_read,
        },
 
@@ -4982,7 +4982,7 @@ struct flashchip flashchips[] = {
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
        },
 
@@ -5011,7 +5011,7 @@ struct flashchip flashchips[] = {
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_chip_write_1, /* datasheet says AAI using 
0xAF ? */
                .read           = spi_chip_read,
        },
 
@@ -5046,7 +5046,7 @@ struct flashchip flashchips[] = {
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
        },
 
@@ -5081,7 +5081,7 @@ struct flashchip flashchips[] = {
                        },
                },
                .unlock         = spi_disable_blockprotect,
-               .write          = spi_chip_write_1,
+               .write          = spi_aai_write,
                .read           = spi_chip_read,
        },
 
-- 
1.7.2.3

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

Reply via email to