[PATCH] [MTD] [NOR] Add support for the ST M29W400DB flash chip

Gordon Farquharson gordonfarquharson at gmail.com
Tue Feb 26 16:39:54 EST 2008


Please could somebody acknowledge this patch. I have sent it to
linux-mtd several times and received no response [1]. It was
originally posted to linux-mtd on 2008-01-08 in the hope that it would
be included in 2.6.25.

Thanks.

[1] http://lists.infradead.org/pipermail/linux-mtd/2008-January/020291.html

---

Add support for the ST M29W400DB flash chip. which is used on the GLAN Tank NAS.

Signed-off-by: Gordon Farquharson <gordonfarquharson at gmail.com>

---

diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index 4be51a8..51ec937 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -135,6 +135,7 @@
 #define M29W160DT	0x22C4
 #define M29W160DB	0x2249
 #define M29W040B	0x00E3
+#define M29W400DB	0x00EF
 #define M50FW040	0x002C
 #define M50FW080	0x002D
 #define M50FW016	0x002E
@@ -1498,7 +1499,22 @@ static const struct amd_flash_info jedec_table[] = {
 		.regions	= {
 			ERASEINFO(0x10000,8),
 		}
-        }, {
+	}, {
+		.mfr_id		= MANUFACTURER_ST,
+		.dev_id		= M29W400DB,
+		.name		= "ST M29W400DB",
+		.devtypes	= CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
+		.uaddr		= MTD_UADDR_0x0555_0x02AA,
+		.dev_size	= SIZE_512KiB,
+		.cmd_set	= P_ID_AMD_STD,
+		.nr_regions	= 4,
+		.regions	= {
+			ERASEINFO(0x04000,1),
+			ERASEINFO(0x02000,2),
+			ERASEINFO(0x08000,1),
+			ERASEINFO(0x10000,7)
+		}
+	}, {
 		.mfr_id		= MANUFACTURER_ST,
 		.dev_id		= M50FW040,
 		.name		= "ST M50FW040",

-- 
Gordon Farquharson
GnuPG Key ID: 32D6D676



More information about the linux-mtd mailing list