public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] mpc8245 timer
@ 2003-04-16  7:51 DeLaGarza, Robert
  0 siblings, 0 replies; 3+ messages in thread
From: DeLaGarza, Robert @ 2003-04-16  7:51 UTC (permalink / raw)
  To: u-boot

On Tuesday, April 15, 2003 2:00 AM, Wolfgang Denk [SMTP:wd at denx.de] wrote:
> In message <01C302F0.40E40DC0.robdlg@att.net> you wrote:
> > 
> > ...in Table 11-11 of the _MPC8245 Integrated Processor User's Manual_,
> > there is the statement "The timers operate at 1/8 the speed of the SDRAM_CLK signal."
> > 
> > Should the divisor in get_tbclk( ) be 8L for the MPC8245?
> 
> You can easily try it out: how long does "sleep 10" sleep on your system?


Yes--thanks.  I tested "sleep 10" on both our '8245 reference board (an Artis Microsystems
SBC-A3000) and our own custom '8241 board.  In both cases, the sleep interval was correct.

Thus, the divisor in get_tbclk( ) appears to be fine.  I will disregard Table 11-11, as it does not
seem to apply here.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [U-Boot-Users] mpc8245 timer
@ 2003-04-15  8:42 DeLaGarza, Robert
  2003-04-15  8:59 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: DeLaGarza, Robert @ 2003-04-15  8:42 UTC (permalink / raw)
  To: u-boot

The following code appears in u-boot-0.3.0/cpu/mpc824x/cpu.c

/*
 * Get timebase clock frequency (like cpu_clk in Hz)
 * This is the sys_logic_clk (memory bus) divided by 4
 */
unsigned long get_tbclk (void)
{
	return ((get_bus_freq (0) + 2L) / 4L);
}


However, in Table 11-11 of the _MPC8245 Integrated Processor User's Manual_,
there is the statement "The timers operate at 1/8 the speed of the SDRAM_CLK signal."

Should the divisor in get_tbclk( ) be 8L for the MPC8245?

(I know there are several '8245 and '8241 boards using PPCBoot and/or U-Boot, so my
guess is that the manual is wrong, but I didn't see anything in the errata about this.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-16  7:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-16  7:51 [U-Boot-Users] mpc8245 timer DeLaGarza, Robert
  -- strict thread matches above, loose matches on Subject: below --
2003-04-15  8:42 DeLaGarza, Robert
2003-04-15  8:59 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox