From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 09 Nov 2006 11:28:10 -0600 Subject: [U-Boot-Users] flat tree clock setting In-Reply-To: <4553605D.5070205@freescale.com> References: <4553605D.5070205@freescale.com> Message-ID: <4553652A.1040606@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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