[U-Boot-Users] [PATCH] mips: tolerate the MIPS 'CFG_HZ' values in the MHZ range for NAND delays

Scott Wood scottwood at freescale.com
Mon May 19 22:43:17 CEST 2008


Wolfgang Denk wrote:
> In message <4831E28E.5060005 at freescale.com> you wrote:
>> if (state == FL_ERASING)
>> 	timeo = CFG_HZ * 2 / 5;
>> else
>> 	timeo = CFG_HZ / 50
>>
>> If we have CFG_HZ values that are within a factor of 2 of wrapping 
>> around, the platform should probably do some downward scaling (or we 
>> should think about 64-bit timestamps)...
> 
> Not needed. CFG_HZ == 1000 for all sane ports.
> 
> Broken ports should be fixed.

Maybe we should define it in a non-board-specific header, so as to make 
the intent clear that it not actually be configurable?

-Scott




More information about the U-Boot mailing list