[U-Boot-Users] flat tree clock setting
Timur Tabi
timur at freescale.com
Thu Nov 9 18:07:41 CET 2006
David Updegraff wrote:
> Hi.
>
> Might it be nice if FT could use the calculated -- more likely to be
> correct timebase value?
Wouldn't it be better to change get_tbclk() to look like this?
unsigned long get_tbclk(void)
{
#ifdef OF_TBCLK
return OF_TBCLK
#else
ulong tbclk;
tbclk = (gd->bus_clk + 3L) / 4L;
return tbclk;
#endif
}
And then change the ft_build.c code to always call get_tbclk()?
I haven't tried compiling the above code, but I think you all get the idea.
--
Timur Tabi
Linux Kernel Developer @ Freescale
More information about the U-Boot
mailing list