mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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>
This commit is contained in:

committed by
Stefan Tauner

parent
027e01890f
commit
3603a28a6d
4
sfdp.c
4
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)) {
|
||||
|
Reference in New Issue
Block a user