Patchwork Support for PCM Pm39LV020 and Pm39LV040

login
register
about
Submitter Anders Juel Jensen
Date 2010-01-16 02:38:44
Message ID <201001160338.45014.andersjjensen@gmail.com>
Download mbox | patch
Permalink /patch/793/
State Superseded
Headers show

Comments

Anders Juel Jensen - 2010-01-16 02:38:44
According to the data sheet these are identical to the 39LV010 in every 
respect except capacity.

Unfortunately I can't test this, as I am on a laptop. Flashrom simply doesn't 
detect the chip.

Signed-of-by: Anders Juel Jensen <andersjjensen@gmail.com>
Sean Nelson - 2010-01-17 04:53:00
Could you please redo patch to use block_erasers?
Anders Juel Jensen - 2010-01-17 09:46:39
On Sunday 17 January 2010 05:53:00 Sean Nelson wrote:
> Could you please redo patch to use block_erasers?
> 
I don't have enough overview of all this to figure this out yet. I will read 
some more code and see what I can come up with.

Can you point me to a reasonably similar chip that already uses block erasers 
so I can use that as a template?

/Anders

Patch

Index: flashchips.c
===================================================================
--- flashchips.c	(revision 862)
+++ flashchips.c	(working copy)
@@ -3204,6 +3204,38 @@ 
 
 	{
 		.vendor		= "PMC",
+		.name		= "Pm39LV020",
+		.bustype	= CHIP_BUSTYPE_PARALLEL,
+		.manufacture_id	= PMC_ID_NOPREFIX,
+		.model_id	= PMC_39F020,
+		.total_size	= 256,
+		.page_size	= 4096,
+		.tested		= TEST_UNTESTED,
+		.probe		= probe_jedec,
+		.probe_timing	= TIMING_ZERO,	/* Datasheet has no timing info specified */
+		.erase		= erase_chip_jedec,
+		.write		= write_49f002,
+		.read		= read_memmapped,
+	},
+
+	{
+		.vendor		= "PMC",
+		.name		= "Pm39LV040",
+		.bustype	= CHIP_BUSTYPE_PARALLEL,
+		.manufacture_id	= PMC_ID_NOPREFIX,
+		.model_id	= PMC_39F040,
+		.total_size	= 512,
+		.page_size	= 4096,
+		.tested		= TEST_UNTESTED,
+		.probe		= probe_jedec,
+		.probe_timing	= TIMING_ZERO,	/* Datasheet has no timing info specified */
+		.erase		= erase_chip_jedec,
+		.write		= write_49f002,
+		.read		= read_memmapped,
+	},
+	
+	{
+		.vendor		= "PMC",
 		.name		= "Pm49FL002",
 		.bustype	= CHIP_BUSTYPE_LPC|CHIP_BUSTYPE_FWH, /* A/A Mux*/
 		.manufacture_id	= PMC_ID_NOPREFIX,