Hello,

Below, a patch to allow MX25L12805D support, from the datasheet.
It is also available in attachment.

Make good use of it ;-)

  Stephan.

Signed-off-by: Stephan Guilloux <[email protected]>
Index: flashrom/flash.h
===================================================================
--- flashrom/flash.h    (révision 4146)
+++ flashrom/flash.h    (copie de travail)
@@ -283,6 +283,7 @@
 #define MX_25L1605             0x2015  /* MX25L1605{,A,D} */
 #define MX_25L3205             0x2016  /* MX25L3205{,A} */
 #define MX_25L6405             0x2017  /* MX25L3205{,D} */
+#define MX_25L12805            0x2018  /* MX25L12805{,D} */
 #define MX_25L1635D            0x2415
 #define MX_25L3235D            0x2416
 #define MX_29F002B             0x34
Index: flashrom/flashchips.c
===================================================================
--- flashrom/flashchips.c       (révision 4146)
+++ flashrom/flashchips.c       (copie de travail)
@@ -855,6 +855,20 @@

        {
                .vendor         = "Macronix",
+               .name           = "MX25L12805",
+               .manufacture_id = MX_ID,
+               .model_id       = MX_25L12805,
+               .total_size     = 16384,
+               .page_size      = 256,
+               .tested         = TEST_UNTESTED,
+               .probe          = probe_spi_rdid,
+               .erase          = spi_chip_erase_60_c7,
+               .write          = spi_chip_write,
+               .read           = spi_chip_read,
+       },
+
+       {
+               .vendor         = "Macronix",
                .name           = "MX29F002B",
                .manufacture_id = MX_ID,
                .model_id       = MX_29F002B,
@@ -2225,4 +2239,4 @@
        },

        { NULL  }
-       };
+};
Index: flashrom/flash.h
===================================================================
--- flashrom/flash.h	(révision 4146)
+++ flashrom/flash.h	(copie de travail)
@@ -283,6 +283,7 @@
 #define MX_25L1605		0x2015	/* MX25L1605{,A,D} */
 #define MX_25L3205		0x2016	/* MX25L3205{,A} */
 #define MX_25L6405		0x2017	/* MX25L3205{,D} */
+#define MX_25L12805		0x2018	/* MX25L12805 */
 #define MX_25L1635D		0x2415
 #define MX_25L3235D		0x2416
 #define MX_29F002B		0x34
Index: flashrom/flashchips.c
===================================================================
--- flashrom/flashchips.c	(révision 4146)
+++ flashrom/flashchips.c	(copie de travail)
@@ -855,6 +855,20 @@
 
 	{
 		.vendor		= "Macronix",
+		.name		= "MX25L12805",
+		.manufacture_id	= MX_ID,
+		.model_id	= MX_25L12805,
+		.total_size	= 16384,
+		.page_size	= 256,
+		.tested		= TEST_UNTESTED,
+		.probe		= probe_spi_rdid,
+		.erase		= spi_chip_erase_60_c7,
+		.write		= spi_chip_write,
+		.read		= spi_chip_read,
+	},
+
+	{
+		.vendor		= "Macronix",
 		.name		= "MX29F002B",
 		.manufacture_id	= MX_ID,
 		.model_id	= MX_29F002B,
@@ -2225,4 +2239,4 @@
 	},
 
 	{ NULL 	}
-	};
+};
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to