This patch adds the FEATURE_WRSR_WREN bit to the feature_bits for many of
the supported Eon chips. I was unable to find datasheets for all the similar
Eon chips... there seems to be some huge number of variants listed on
http://www.eonssi.com/products/products.aspx . Perhaps we can safely assume
they are sanely uniform and apply FEATURE_WRSR_WREN to all of them?

Signed-off-by: David Hendricks <[email protected]>

-- 
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.
Index: flashrom-head/flashchips.c
===================================================================
--- flashrom-head.orig/flashchips.c
+++ flashrom-head/flashchips.c
@@ -2499,6 +2499,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25B64,
 		.total_size	= 8192,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2598,6 +2599,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F05,
 		.total_size	= 64,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2633,6 +2635,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F10,
 		.total_size	= 128,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2668,6 +2671,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F20,
 		.total_size	= 256,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2703,6 +2707,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F40,
 		.total_size	= 512,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PROBE,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2735,6 +2740,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F80,
 		.total_size	= 1024,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_OK_PR,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2767,6 +2773,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F16,
 		.total_size	= 2048,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
@@ -2799,6 +2806,7 @@ struct flashchip flashchips[] = {
 		.model_id	= EN_25F32,
 		.total_size	= 4096,
 		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
 		.tested		= TEST_UNTESTED,
 		.probe		= probe_spi_rdid,
 		.probe_timing	= TIMING_ZERO,
_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to