Enhancements to make flash_rom easier
Corresponding to coreboot v1 svn r746.
diff --git a/flash_rom.c b/flash_rom.c
index f04e0ae..94d4972 100644
--- a/flash_rom.c
+++ b/flash_rom.c
@@ -205,7 +205,7 @@
void
myusec_calibrate_delay()
{
- unsigned long count = 20 * 1024 * 1024;
+ unsigned long count = 10 * 1024 * 1024;
volatile unsigned long i;
unsigned long timeusec;
struct timeval start, end;
@@ -221,7 +221,7 @@
timeusec = 1000000 * (end.tv_sec - start.tv_sec ) +
(end.tv_usec - start.tv_usec);
fprintf(stderr, "timeusec is %d\n", timeusec);
- count *= 10;
+ count *= 100;
if (timeusec < 1000000)
continue;
ok = 1;