After verification in datasheets, all MX25 accept the same opcodes 0x60 and 0xC7 for Chip Erase
Corresponding to flashrom svn r435 and coreboot v2 svn r4146.
Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/flashchips.c b/flashchips.c
index a3b0baa..dae0791 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -736,7 +736,7 @@
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -750,7 +750,7 @@
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -764,7 +764,7 @@
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -778,7 +778,7 @@
.page_size = 256,
.tested = TEST_OK_PREW,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -792,7 +792,7 @@
.page_size = 256,
.tested = TEST_OK_PREW,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -824,6 +824,7 @@
.write = spi_chip_write,
.read = spi_chip_read,
},
+
{
.vendor = "Macronix",
.name = "MX25L3205",
@@ -833,7 +834,7 @@
.page_size = 256,
.tested = TEST_OK_PREW,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -847,7 +848,7 @@
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},