Changeset 1527 for trunk/sfdp.c


Ignore:
Timestamp:
May 2, 2012, 10:07:57 PM (2 years ago)
Author:
stefanct
Message:

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.

Signed-off-by: Steven Zakulec <spzakulec@…>
Acked-by: Stefan Tauner <stefan.tauner@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sfdp.c

    r1506 r1527  
    177177                        msg_cdbg2("EWSR (0x50).\n"); 
    178178                } 
    179         } else 
     179        } else { 
    180180                msg_cdbg2("non-volatile and the standard does not allow " 
    181181                          "vendors to tell us whether EWSR/WREN is needed for " 
    182182                          "status register writes - assuming EWSR.\n"); 
     183                        flash->feature_bits = FEATURE_WRSR_EWSR; 
     184                } 
    183185 
    184186        msg_cdbg2("  Write chunk size is "); 
Note: See TracChangeset for help on using the changeset viewer.