Changeset 1115 for trunk/chipdrivers.h


Ignore:
Timestamp:
07/29/10 15:09:18 (22 months ago)
Author:
hailfinger
Message:

Add detailed status register printing and unlocking for all ATMEL AT25*
chips.

Add support for Atmel AT25DF081A and AT25DQ161.

Some chips require EWSR before WRSR, others require WREN before WRSR,
and some support both variants. Add feature_bits to select the correct
SPI command, and default to EWSR.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Tested-by: Steven Rosario
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/chipdrivers.h

    r1083 r1115  
    4848int spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int len); 
    4949uint8_t spi_read_status_register(void); 
     50int spi_prettyprint_status_register_at25df(struct flashchip *flash); 
     51int spi_prettyprint_status_register_at25df_sec(struct flashchip *flash); 
     52int spi_prettyprint_status_register_at25f(struct flashchip *flash); 
     53int spi_prettyprint_status_register_at25fs010(struct flashchip *flash); 
     54int spi_prettyprint_status_register_at25fs040(struct flashchip *flash); 
    5055int spi_disable_blockprotect(struct flashchip *flash); 
     56int spi_disable_blockprotect_at25df(struct flashchip *flash); 
     57int spi_disable_blockprotect_at25df_sec(struct flashchip *flash); 
     58int spi_disable_blockprotect_at25f(struct flashchip *flash); 
     59int spi_disable_blockprotect_at25fs010(struct flashchip *flash); 
     60int spi_disable_blockprotect_at25fs040(struct flashchip *flash); 
    5161int spi_byte_program(int addr, uint8_t databyte); 
    5262int spi_nbyte_program(int addr, uint8_t *bytes, int len); 
Note: See TracChangeset for help on using the changeset viewer.