[flashrom] [commit] r1165 - trunk
repository service
svn at flashrom.org
Tue Sep 14 15:16:01 CEST 2010
Author: uwe
Date: Tue Sep 14 15:16:01 2010
New Revision: 1165
URL: http://flashrom.org/trac/flashrom/changeset/1165
Log:
Add support for ST M25PX32 and M25PX64 flash chips. Probe, read, erase and
write have been tested and all are functional.
Signed-off-by: Jason Shriver <j.shriver at f5.com>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
Modified:
trunk/flashchips.c
trunk/flashchips.h
Modified: trunk/flashchips.c
==============================================================================
--- trunk/flashchips.c Tue Sep 14 03:29:49 2010 (r1164)
+++ trunk/flashchips.c Tue Sep 14 15:16:01 2010 (r1165)
@@ -6114,6 +6114,64 @@
{
.vendor = "ST",
+ .name = "M25PX32",
+ .bustype = CHIP_BUSTYPE_SPI,
+ .manufacture_id = ST_ID,
+ .model_id = ST_M25PX32,
+ .total_size = 4096,
+ .page_size = 256,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { { 4 * 1024, 1024 } },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {64 * 1024, 64} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {4 * 1024 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ },
+
+ {
+ .vendor = "ST",
+ .name = "M25PX64",
+ .bustype = CHIP_BUSTYPE_SPI,
+ .manufacture_id = ST_ID,
+ .model_id = ST_M25PX64,
+ .total_size = 8192,
+ .page_size = 256,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { { 4 * 1024, 2048 } },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {64 * 1024, 128} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {8 * 1024 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ },
+
+ {
+ .vendor = "ST",
.name = "M29F002B",
.bustype = CHIP_BUSTYPE_PARALLEL,
.manufacture_id = ST_ID,
Modified: trunk/flashchips.h
==============================================================================
--- trunk/flashchips.h Tue Sep 14 03:29:49 2010 (r1164)
+++ trunk/flashchips.h Tue Sep 14 15:16:01 2010 (r1165)
@@ -487,6 +487,8 @@
#define ST_M25P32 0x2016
#define ST_M25P64 0x2017
#define ST_M25P128 0x2018
+#define ST_M25PX32 0x7116
+#define ST_M25PX64 0x7117
#define ST_M25PE10 0x8011
#define ST_M25PE20 0x8012
#define ST_M25PE40 0x8013
More information about the flashrom
mailing list