summaryrefslogtreecommitdiffstats
path: root/flash_rom.c
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2003-02-12 18:11:42 +0000
committerRonald G. Minnich <rminnich@gmail.com>2003-02-12 18:11:42 +0000
commit4d32e789a867bbf1419fc1f4f82b1145891d4d16 (patch)
tree17f02561746b9542f3bf1099c7a79c2c5bcae276 /flash_rom.c
parentc73ad98798a0f7090724f3484861cda59dd42a44 (diff)
downloadast2050-flashrom-4d32e789a867bbf1419fc1f4f82b1145891d4d16.zip
ast2050-flashrom-4d32e789a867bbf1419fc1f4f82b1145891d4d16.tar.gz
Enhancements to make flash_rom easier
Corresponding to coreboot v1 svn r746.
Diffstat (limited to 'flash_rom.c')
-rw-r--r--flash_rom.c4
1 files changed, 2 insertions, 2 deletions
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 @@ 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;
OpenPOWER on IntegriCloud