Patchwork [PATCH/RESEND,2.6.29.3] MTD: Add SST39SF040 chip to jedec_probe

login
register
mail settings
Submitter Michał Mirosław
Date May 12, 2009, 10:37 p.m.
Message ID <20090512223718.GB26588@rere.qmqm.pl>
Download mbox | patch
Permalink /patch/27240/
State New, archived
Headers show

Comments

Michał Mirosław - May 12, 2009, 10:37 p.m.
Add SST39SF040 chip (like SST39SF020A but bigger - 4Mbit).

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Artem Bityutskiy - May 15, 2009, 2:15 p.m.
On Wed, 2009-05-13 at 00:37 +0200, Michał Mirosław wrote:
> Add SST39SF040 chip (like SST39SF020A but bigger - 4Mbit).
> 
> Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>

Taken to l2-mtd-2.6.git.

Patch

--- linux-2.6.27.6-brfix1/drivers/mtd/chips/jedec_probe.c	2008-11-16 14:24:30.000000000 +0100
+++ rechot/drivers/mtd/chips/jedec_probe.c	2008-11-18 01:28:10.000000000 +0100
@@ -165,6 +165,7 @@ 
 #define SST39LF040	0x00D7
 #define SST39SF010A	0x00B5
 #define SST39SF020A	0x00B6
+#define SST39SF040	0x00B7
 #define SST49LF004B	0x0060
 #define SST49LF040B	0x0050
 #define SST49LF008A	0x005a
@@ -1392,6 +1393,18 @@ 
 		}
 	}, {
 		.mfr_id		= MANUFACTURER_SST,
+		.dev_id		= SST39SF040,
+		.name		= "SST 39SF040",
+		.devtypes	= CFI_DEVICETYPE_X8,
+		.uaddr		= MTD_UADDR_0x5555_0x2AAA,
+		.dev_size	= SIZE_512KiB,
+		.cmd_set	= P_ID_AMD_STD,
+		.nr_regions	= 1,
+		.regions	= {
+			ERASEINFO(0x01000,128),
+		}
+	}, {
+		.mfr_id		= MANUFACTURER_SST,
 		.dev_id		= SST49LF040B,
 		.name		= "SST 49LF040B",
 		.devtypes	= CFI_DEVICETYPE_X8,