[U-Boot] [PATCH] Move ICS CLK chip frequenty calculation code into a common board library
Timur Tabi
timur.tabi at gmail.com
Fri May 21 20:59:09 CEST 2010
On Fri, May 21, 2010 at 4:18 AM, Kumar Gala <galak at kernel.crashing.org> wrote:
> + * Adding 1 to get a "nicely" rounded number, but this needs
> + * more tweaking to get a "properly" rounded number.
> + */
> +
> + freq = 1 + (input_freq * 2 * (VDW + 8) / ((RDW + 2) * OD));
Is this rounding algorithm the reason why I get output like this:
Clock Configuration:
CPU0:799.992 MHz, CPU1:799.992 MHz,
CCB:399.996 MHz,
DDR:299.997 MHz (599.994 MT/s data rate) (Asynchronous), LBC:25
MHz
If so, maybe we should fix it?
--
Timur Tabi
Linux kernel developer at Freescale
More information about the U-Boot
mailing list