Patchwork Add FEATURE_WRSR_WREN to feature_bits for all Winbond SPI flash chips

login
register
about
Submitter David Hendricks
Date 2010-08-13 21:36:54
Message ID <AANLkTimmdv2jimLK1okmc3ZvLWDtdCWKBG9iO-1CKVgU@mail.gmail.com>
Download mbox | patch
Permalink /patch/1739/
State Accepted
Commit r1147
Headers show

Comments

David Hendricks - 2010-08-13 21:36:54
This adds feature bits for all Winbond SPI flash parts to indicate so that
spi_write_status_register() uses WREN instead of EWSR.

Signed-off-by: David Hendricks <dhendrix@google.com>
Carl-Daniel Hailfinger - 2010-09-03 03:15:27
On 13.08.2010 23:36, David Hendricks wrote:
> This adds feature bits for all Winbond SPI flash parts to indicate so that
> spi_write_status_register() uses WREN instead of EWSR.
>
> Signed-off-by: David Hendricks <dhendrix@google.com>
>   

Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>

Thanks, committed in r1147.

Regards,
Carl-Daniel

Patch

Index: flashchips.c
===================================================================
--- flashchips.c	(revision 1137)
+++ flashchips.c	(working copy)
@@ -6841,6 +6841,7 @@ 
 		.model_id	= W_25Q80,
 		.total_size	= 1024,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PREW,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -6876,6 +6877,7 @@ 
 		.model_id	= W_25Q16,
 		.total_size	= 2048,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -6911,6 +6913,7 @@ 
 		.model_id	= W_25Q32,
 		.total_size	= 4096,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -6946,6 +6949,7 @@ 
 		.model_id	= W_25Q64,
 		.total_size	= 8192,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PRW,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -6981,6 +6985,7 @@ 
 		.model_id	= W_25X10,
 		.total_size	= 128,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -7010,6 +7015,7 @@ 
 		.model_id	= W_25X20,
 		.total_size	= 256,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -7039,6 +7045,7 @@ 
 		.model_id	= W_25X40,
 		.total_size	= 512,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PREW,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -7068,6 +7075,7 @@ 
 		.model_id	= W_25X80,
 		.total_size	= 1024,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PREW,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -7097,6 +7105,7 @@ 
 		.model_id	= W_25X16,
 		.total_size	= 2048,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PREW,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -7132,6 +7141,7 @@ 
 		.model_id	= W_25X32,
 		.total_size	= 4096,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PROBE,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -7167,6 +7177,7 @@ 
 		.model_id	= W_25X64,
 		.total_size	= 8192,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,