Skip to contentSkip to conversation

Add support for the ST M29W400DB flash chip

PATCH New Gordon Farquharson 1 participant 1 message Feb 26, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for the ST M29W400DB flash chip

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.

---

drivers/mtd/chips/jedec_probe.c +17 -1
index 4be51a8..51ec937 100644
@@ -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",
Signature · 2 lines
Gordon Farquharson
GnuPG Key ID: 32D6D676