1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

dummyflasher: Add a status register to SPI chips

Corresponding to flashrom svn r1532.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>  
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Stefan Tauner
2012-05-06 17:03:40 +00:00
parent dc704edad4
commit 5e695ab4d7
5 changed files with 82 additions and 23 deletions

View File

@ -335,7 +335,7 @@ static int it8716f_spi_page_program(struct flashctx *flash, uint8_t *buf,
/* Wait until the Write-In-Progress bit is cleared.
* This usually takes 1-10 ms, so wait in 1 ms steps.
*/
while (spi_read_status_register(flash) & JEDEC_RDSR_BIT_WIP)
while (spi_read_status_register(flash) & SPI_SR_WIP)
programmer_delay(1000);
return 0;
}