Changeset 1532 for trunk/it87spi.c


Ignore:
Timestamp:
May 6, 2012, 7:03:40 PM (2 years ago)
Author:
stefanct
Message:

dummyflasher: Add a status register to SPI chips.

Signed-off-by: Stefan Tauner <stefan.tauner@…>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/it87spi.c

    r1511 r1532  
    336336         * This usually takes 1-10 ms, so wait in 1 ms steps. 
    337337         */ 
    338         while (spi_read_status_register(flash) & JEDEC_RDSR_BIT_WIP) 
     338        while (spi_read_status_register(flash) & SPI_SR_WIP) 
    339339                programmer_delay(1000); 
    340340        return 0; 
Note: See TracChangeset for help on using the changeset viewer.