summaryrefslogtreecommitdiffstats
path: root/it87spi.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-06 17:03:40 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-06 17:03:40 +0000
commit5e695ab4d7555952f0b020f235d868955251e3ae (patch)
tree2fbeddbc906b96de794bd02794d73360124277d6 /it87spi.c
parentdc704edad44995845727a231e3f1d6dda74708fd (diff)
downloadast2050-flashrom-5e695ab4d7555952f0b020f235d868955251e3ae.zip
ast2050-flashrom-5e695ab4d7555952f0b020f235d868955251e3ae.tar.gz
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>
Diffstat (limited to 'it87spi.c')
-rw-r--r--it87spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/it87spi.c b/it87spi.c
index fa37d52..8119289 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -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;
}
OpenPOWER on IntegriCloud