From: Wolfgang Denk Date: Mon, 19 May 2008 22:39:22 +0200 Subject: [U-Boot-Users] [PATCH] mips: tolerate the MIPS 'CFG_HZ' values in the MHZ range for NAND delays In-Reply-To: Your message of "Mon, 19 May 2008 15:26:54 CDT." <4831E28E.5060005@freescale.com> Message-ID: <20080519203922.6438D2476E@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <4831E28E.5060005@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. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de People are always a lot more complicated than you think. It's very important to remember that. - Terry Pratchett, _Truckers_