
9 Nov
2006
9 Nov
'06
6:07 p.m.
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