summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-05 17:48:08 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-05 17:48:08 +0000
commitca8bfc6c22196e5d16c6d2625c65d6b50c04daaf (patch)
tree329ba3be9013c0a5934c66233a3c5205f0ed4b20 /ichspi.c
parent945d26a0d7eef8faf46453d5f2717c21b59bafc2 (diff)
downloadast2050-flashrom-ca8bfc6c22196e5d16c6d2625c65d6b50c04daaf.zip
ast2050-flashrom-ca8bfc6c22196e5d16c6d2625c65d6b50c04daaf.tar.gz
Add programmer-specific delay functions
Add external programmer delay functions so external programmers can handle the delay on their own if needed. Corresponding to flashrom svn r578. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Urja Rannikko <urjaman@gmail.com>
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ichspi.c b/ichspi.c
index 8f8d6e6..4f83908 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -453,7 +453,7 @@ static int ich7_run_opcode(OPCODE op, uint32_t offset,
/* wait for cycle complete */
timeout = 100 * 1000 * 60; // 60s is a looong timeout.
while (((REGREAD16(ICH7_REG_SPIS) & SPIS_CDS) == 0) && --timeout) {
- myusec_delay(10);
+ programmer_delay(10);
}
if (!timeout) {
printf_debug("timeout\n");
@@ -570,7 +570,7 @@ static int ich9_run_opcode(OPCODE op, uint32_t offset,
/*wait for cycle complete */
timeout = 100 * 1000 * 60; // 60s is a looong timeout.
while (((REGREAD32(ICH9_REG_SSFS) & SSFS_CDS) == 0) && --timeout) {
- myusec_delay(10);
+ programmer_delay(10);
}
if (!timeout) {
printf_debug("timeout\n");
OpenPOWER on IntegriCloud