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>
diff --git a/udelay.c b/udelay.c
index 4160300..9a0ab36 100644
--- a/udelay.c
+++ b/udelay.c
@@ -24,10 +24,10 @@
// count to a billion. Time it. If it's < 1 sec, count to 10B, etc.
unsigned long micro = 1;
-void myusec_delay(int time)
+void myusec_delay(int usecs)
{
volatile unsigned long i;
- for (i = 0; i < time * micro; i++) ;
+ for (i = 0; i < usecs * micro; i++) ;
}
void myusec_calibrate_delay(void)