1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-08-17 12:20:15 +02:00

Fix timing of SPI status register writes (WRSR)

SPI write status register (WRSR) may take longer than 100 ms, and it
makes sense to poll for completion in 10 ms steps until 5 s are over.
This patch complements r1115.

Corresponding to flashrom svn r1201.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Joshua Roys <roysjosh@gmail.com>
This commit is contained in:
Carl-Daniel Hailfinger
2010-10-08 00:37:55 +00:00
parent ef69783a83
commit 174f55bdec
2 changed files with 39 additions and 4 deletions

View File

@@ -35,6 +35,9 @@
#define ERROR_PTR ((void*)-1)
/* Error codes */
#define TIMEOUT_ERROR -101
typedef unsigned long chipaddr;
int register_shutdown(void (*function) (void *data), void *data);