summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorCarl Worth <carl.d.worth@intel.com>2011-03-06 18:45:40 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-03-06 18:45:40 +0000
commitd80a3971c0d0a5cb9d9a97688aad0204af763f8c (patch)
treeef5502d2ade5968b02bfed36918602c9be5a821d /flashchips.c
parentb93a4f91ac3884e86c9c1ad31f2e8b0ff22e1dc2 (diff)
downloadflashrom-d80a3971c0d0a5cb9d9a97688aad0204af763f8c.zip
flashrom-d80a3971c0d0a5cb9d9a97688aad0204af763f8c.tar.gz
Add support for ST M25PX16 and mark it as supported
Tests were performed with write and verify operations to 4 different M25PX16 chips with a Dediprog SF100. Corresponding to flashrom svn r1270. Signed-off-by: Carl Worth <carl.d.worth@intel.com> Acked-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 1f17966..309316b 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -6516,6 +6516,35 @@ struct flashchip flashchips[] = {
{
.vendor = "ST",
+ .name = "M25PX16",
+ .bustype = CHIP_BUSTYPE_SPI,
+ .manufacture_id = ST_ID,
+ .model_id = ST_M25PX16,
+ .total_size = 2048,
+ .page_size = 256,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { { 4 * 1024, 512 } },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {64 * 1024, 32} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {2 * 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 = "M25PX32",
.bustype = CHIP_BUSTYPE_SPI,
.manufacture_id = ST_ID,
OpenPOWER on IntegriCloud