Commit 4d32e789 authored by Ronald G. Minnich's avatar Ronald G. Minnich
Browse files

Enhancements to make flash_rom easier

Corresponding to coreboot v1 svn r746.
parent c73ad987
......@@ -205,7 +205,7 @@ unsigned long micro = 0;
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 @@ myusec_calibrate_delay()
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment