From 6b44496c562b4c4be1ea32c7122904095210b33f Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 18 Oct 2007 00:24:07 +0000 Subject: Add generic SPI flash erase and write support The first chip the code was tested and verified with is the Macronix MX25L4005, but other chips should work as well. Timeouts are still hardcoded to data sheet maxima, but the status register checking code is already there. Thanks to Harald Gutmann for the initial code on which this is loosely based. Corresponding to flashrom svn r152 and coreboot v2 svn r2874. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Stefan Reinauer --- flashchips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flashchips.c') diff --git a/flashchips.c b/flashchips.c index 0c393a9f..d1b471a2 100644 --- a/flashchips.c +++ b/flashchips.c @@ -39,7 +39,7 @@ struct flashchip flashchips[] = { {"Mx29f002", MX_ID, MX_29F002, 256, 64 * 1024, probe_29f002, erase_29f002, write_29f002}, {"MX25L4005", MX_ID, MX_25L4005, 512, 4 * 1024, - probe_spi, NULL, NULL}, + probe_spi, generic_spi_chip_erase, generic_spi_chip_write}, {"SST29EE020A", SST_ID, SST_29EE020A, 256, 128, probe_jedec, erase_chip_jedec, write_jedec}, {"SST28SF040A", SST_ID, SST_28SF040, 512, 256, -- cgit v1.2.3