summaryrefslogtreecommitdiffstats
path: root/sfdp.c
diff options
context:
space:
mode:
authorSteven Zakulec <spzakulec@gmail.com>2012-05-02 20:07:57 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-02 20:07:57 +0000
commit2172c363dd3878fddb06f39ce12deeda21888bcf (patch)
tree55b505536275b0dd615f1c20dfafd505ca8ccddf /sfdp.c
parentc0907316f2faba0d351a3c107bae35cce7ca35e9 (diff)
downloadflashrom-2172c363dd3878fddb06f39ce12deeda21888bcf.zip
flashrom-2172c363dd3878fddb06f39ce12deeda21888bcf.tar.gz
Tag all EWSR chips correctly
All SPI chips without a WRSR feature bit set were evaluated except the Sanyo LF25FW203A for which no datasheet is available. The following list includes all SPI-capable chips that still have no WRSR feature bit set: - AT26DF041 - AT45CS1282 - AT45DB011D - AT45DB021D - AT45DB041D - AT45DB081D - AT45DB161D - AT45DB321C - AT45DB321D - AT45DB642D All of them have no write function set and can be therefore ignored for now. Apart from those the generic chips are also not tagged. The opaque flash interface should not be affected. The SFDP dummy chip is changed to explicitly set EWSR if it can't deduce it dynamically. The vendor detecting generic chips can't write anyway. Corresponding to flashrom svn r1527. Signed-off-by: Steven Zakulec <spzakulec@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'sfdp.c')
-rw-r--r--sfdp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfdp.c b/sfdp.c
index 39d59e0..708b66b 100644
--- a/sfdp.c
+++ b/sfdp.c
@@ -176,10 +176,12 @@ static int sfdp_fill_flash(struct flashctx *flash, uint8_t *buf, uint16_t len)
flash->feature_bits = FEATURE_WRSR_EWSR;
msg_cdbg2("EWSR (0x50).\n");
}
- } else
+ } else {
msg_cdbg2("non-volatile and the standard does not allow "
"vendors to tell us whether EWSR/WREN is needed for "
"status register writes - assuming EWSR.\n");
+ flash->feature_bits = FEATURE_WRSR_EWSR;
+ }
msg_cdbg2(" Write chunk size is ");
if (tmp32 & (1 << 2)) {
OpenPOWER on IntegriCloud