From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Thu, 09 Nov 2006 11:07:41 -0600 Subject: [U-Boot-Users] flat tree clock setting In-Reply-To: References: Message-ID: <4553605D.5070205@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 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