Skip to content

Instantly share code, notes, and snippets.

@devicenull
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devicenull/8720643 to your computer and use it in GitHub Desktop.
Save devicenull/8720643 to your computer and use it in GitHub Desktop.
Flashrom MX25L25635F chip defintiion
diff --git a/flashchips.c b/flashchips.c
index a6db11e..ac3ef53 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -5907,6 +5907,33 @@ const struct flashchip flashchips[] = {
.voltage = {3000, 3600},
},
+ {
+ .vendor = "Macronix",
+ .name = "MX25L25635F",
+ .bustype = BUS_SPI,
+ .manufacture_id = MACRONIX_ID,
+ .model_id = MACRONIX_MX25L25635F,
+ .total_size = 32 * 1024,
+ .page_size = 256,
+ /* MX25L512E supports SFDP */
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_UNTESTED,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { { 64*1024, 512} },
+ .block_erase = spi_block_erase_dc,
+ },
+ },
+ .printlock = spi_prettyprint_status_register_default_bp1,
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
+ .voltage = {2700, 3600}, /* 2.7-3.6V */
+ },
+
{
.vendor = "Macronix",
.name = "MX25L512(E)/MX25V512(C)",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment