diff options
| author | Ronald G. Minnich <rminnich@gmail.com> | 2003-02-12 18:11:42 +0000 | 
|---|---|---|
| committer | Ronald G. Minnich <rminnich@gmail.com> | 2003-02-12 18:11:42 +0000 | 
| commit | 4d32e789a867bbf1419fc1f4f82b1145891d4d16 (patch) | |
| tree | 17f02561746b9542f3bf1099c7a79c2c5bcae276 | |
| parent | c73ad98798a0f7090724f3484861cda59dd42a44 (diff) | |
| download | flashrom-4d32e789a867bbf1419fc1f4f82b1145891d4d16.tar.gz flashrom-4d32e789a867bbf1419fc1f4f82b1145891d4d16.tar.bz2 flashrom-4d32e789a867bbf1419fc1f4f82b1145891d4d16.zip | |
Enhancements to make flash_rom easier
Corresponding to coreboot v1 svn r746.
| -rw-r--r-- | flash_rom.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/flash_rom.c b/flash_rom.c index f04e0ae1..94d4972a 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; | 
