[U-Boot-Users] flat tree clock setting

Scott Wood scottwood at freescale.com
Thu Nov 9 18:28:10 CET 2006


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




More information about the U-Boot mailing list