[patch] MTD: add st50fw040 to jedec probe

Dave Airlie airlied at linux.ie
Wed Jun 2 00:22:40 EDT 2004


Hi,
	This is a patch vs 2.6.6 to add the ST50FW040, which is an ICH2
compatible firmware hub flash, datasheet at:

http://www.st.com/stonline/books/ascii/docs/7273.htm

From: Dave Airlie <airlied at linux.ie>

Dave.

p.s.
Dave Woodhouse, is there any plans to merge up your MTD tree to the kernel
soon? this is a fairly harmless change that would be useful for me in the
mainline, but I don't wish to step on any toes :-)

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DECstation / Linux VAX / ILUG person

--- /storage/2.6/linux-2.6.4/drivers/mtd/chips/jedec_probe.c	2004-03-15 14:15:30.000000000 +1100
+++ linux-2.6.6/drivers/mtd/chips/jedec_probe.c	2004-06-22 20:02:18.708945560 +1000
@@ -109,6 +109,7 @@
 #define M29W160DT	0x22C4
 #define M29W160DB	0x2249
 #define M29W040B	0x00E3
+#define M50FW040        0x002C

 /* SST */
 #define SST29EE512	0x005d
@@ -1234,6 +1235,19 @@
 		.regions	= {
 			ERASEINFO(0x10000,8),
 		}
+        }, {
+		.mfr_id		= MANUFACTURER_ST,
+		.dev_id		= M50FW040,
+		.name		= "ST M50FW040",
+		.uaddr		= {
+			[0] = MTD_UADDR_UNNECESSARY,    /* x8 */
+		},
+		.DevSize	= SIZE_512KiB,
+		.CmdSet		= P_ID_INTEL_EXT,
+		.NumEraseRegions= 1,
+		.regions	= {
+			ERASEINFO(0x10000,8),
+		}
 	}, {
 		.mfr_id		= MANUFACTURER_TOSHIBA,
 		.dev_id		= TC58FVT160,




More information about the linux-mtd mailing list