Patchwork Fix erase for SST49LF020A

login
register
about
Submitter Carl-Daniel Hailfinger
Date 2009-07-23 01:32:08
Message ID <4A67BD98.6020307@gmx.net>
Download mbox | patch
Permalink /patch/66/
State Accepted
Commit r664
Headers show

Comments

Carl-Daniel Hailfinger - 2009-07-23 01:32:08
Fix erase for SST49LF020A. The chip supports multiple erase functions,
but the function we use has an eraseblock size of 4k.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Stefan Reinauer - 2009-07-23 01:43:47
Carl-Daniel Hailfinger wrote:
> Fix erase for SST49LF020A. The chip supports multiple erase functions,
> but the function we use has an eraseblock size of 4k.
>
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
>
>   
Ooops.

Acked-by: Stefan Reinauer <stepan@coresystems.de>

> Index: flashrom-sst49lf020a/flashchips.c
> ===================================================================
> --- flashrom-sst49lf020a/flashchips.c	(Revision 659)
> +++ flashrom-sst49lf020a/flashchips.c	(Arbeitskopie)
> @@ -2160,7 +2160,7 @@
>  		.manufacture_id	= SST_ID,
>  		.model_id	= SST_49LF020A,
>  		.total_size	= 256,
> -		.page_size	= 16 * 1024,
> +		.page_size	= 4 * 1024,
>  		.tested		= TEST_UNTESTED,
>  		.probe		= probe_jedec,
>  		.probe_timing	= 1,			/* 150 ns */ 
>
>
>
Carl-Daniel Hailfinger - 2009-07-23 01:45:06
On 23.07.2009 03:43, Stefan Reinauer wrote:
> Carl-Daniel Hailfinger wrote:
>   
>> Fix erase for SST49LF020A. The chip supports multiple erase functions,
>> but the function we use has an eraseblock size of 4k.
>>
>> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
>>
>>   
>>     
> Ooops.
>
> Acked-by: Stefan Reinauer <stepan@coresystems.de>
>   

Thanks, r664.

Regards,
Carl-Daniel

Patch

Index: flashrom-sst49lf020a/flashchips.c
===================================================================
--- flashrom-sst49lf020a/flashchips.c	(Revision 659)
+++ flashrom-sst49lf020a/flashchips.c	(Arbeitskopie)
@@ -2160,7 +2160,7 @@ 
 		.manufacture_id	= SST_ID,
 		.model_id	= SST_49LF020A,
 		.total_size	= 256,
-		.page_size	= 16 * 1024,
+		.page_size	= 4 * 1024,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_jedec,
 		.probe_timing	= 1,			/* 150 ns */