Patchwork SST39SF512 support

login
register
about
Submitter Uwe Hermann
Date 2010-01-16 23:53:29
Message ID <20100116235329.GA17150@greenwood>
Download mbox | patch
Permalink /patch/795/
State Accepted
Commit r881
Headers show

Comments

Uwe Hermann - 2010-01-16 23:53:29
See patch.


Uwe.
Sean Nelson - 2010-01-17 04:52:36
Could you please redo the patch to use block_erasers? Next version of patch:
Acked-by: Sean Nelson <audiohacked@gmail.com>
Uwe Hermann - 2010-01-23 15:15:56
On Sat, Jan 16, 2010 at 08:52:36PM -0800, Sean Nelson wrote:
> Could you please redo the patch to use block_erasers? Next version of patch:
> Acked-by: Sean Nelson <audiohacked@gmail.com>

Done, r881. Changed to block_erasers and re-tested on hardware.


Uwe.

Patch

Add support for the SST39SF512 chip.

All operations tested by me, works fine.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>

Index: flashchips.c
===================================================================
--- flashchips.c	(revision 862)
+++ flashchips.c	(working copy)
@@ -3611,6 +3611,22 @@ 
 
 	{
 		.vendor		= "SST",
+		.name		= "SST39SF512",
+		.bustype	= CHIP_BUSTYPE_PARALLEL,
+		.manufacture_id	= SST_ID,
+		.model_id	= SST_39SF512,
+		.total_size	= 64,
+		.page_size	= 4096,
+		.tested		= TEST_OK_PREW,
+		.probe		= probe_jedec,
+		.probe_timing	= 1,			/* 150 ns */
+		.erase		= erase_chip_jedec,
+		.write		= write_49f002,
+		.read		= read_memmapped,
+	},
+
+	{
+		.vendor		= "SST",
 		.name		= "SST39SF010A",
 		.bustype	= CHIP_BUSTYPE_PARALLEL,
 		.manufacture_id	= SST_ID,
Index: flashchips.h
===================================================================
--- flashchips.h	(revision 862)
+++ flashchips.h	(working copy)
@@ -406,6 +406,7 @@ 
 #define SST_29VF020		0x25
 #define SST_29SF040		0x13
 #define SST_29VF040		0x14
+#define SST_39SF512		0xB4
 #define SST_39SF010		0xB5
 #define SST_39SF020		0xB6	/* Same as 39SF020A */
 #define SST_39SF040		0xB7