On Thu, Feb 21, 2008 at 01:48:23PM -0600, Scott Wood wrote: > Anton Vorontsov wrote: > >diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c > >b/arch/powerpc/platforms/8xx/m8xx_setup.c > >index 184f998..0d9f75c 100644 > >--- a/arch/powerpc/platforms/8xx/m8xx_setup.c > >+++ b/arch/powerpc/platforms/8xx/m8xx_setup.c > >@@ -111,17 +111,12 @@ void __init mpc8xx_calibrate_decr(void) > > > > /* Processor frequency is MHz. > > */ > >- ppc_tb_freq = 50000000; > >- if (!get_freq("bus-frequency", &ppc_tb_freq)) { > >- printk(KERN_ERR "WARNING: Estimating decrementer frequency " > >- "(not found)\n"); > >- } > >- ppc_tb_freq /= 16; > > ppc_proc_freq = 50000000; > > if (!get_freq("clock-frequency", &ppc_proc_freq)) > > printk(KERN_ERR "WARNING: Estimating processor frequency " > > "(not found)\n"); > > > >+ ppc_tb_freq = ppc_proc_freq / 16; > > Shouldn't we just use the timebase-frequency property?
Nope. Most u-boots currently do not setup timebase-frequency, and if they are setting it up, they're doing it wrong, in sense that Linux overwrites timebase setup (yeah, in this regard MPC8xx is special). So, for MPC8xx, Linux doesn't care what timebase setup was used in the firmware. -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev