
9 Nov
2006
9 Nov
'06
6:28 p.m.
Timur Tabi wrote:
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()?
Are there any boards on which OF_TBCLK is (properly) set to something other than what get_tbclk() returns (ignoring the difference in rounding)? I don't see any, nor can I think of a reason why such a difference should ever exist. Perhaps OF_TBCLK should just be removed?
-Scott