public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew Wozniak <awozniak@mc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PPC440 interval timer off by factor of 10?
Date: Tue, 04 Jan 2005 12:31:58 -0500	[thread overview]
Message-ID: <41DAD30E.1010404@mc.com> (raw)

Hello,

I'm porting the OCOTEA u-boot package to a customer PPC440 board.  In
the process of debugging (non-CFI) Flash timeout functions, it appears
that get_timer() is returning a value which increments every 10msec
instead of 1 msec:

Further code examinations shows that interrupt_init_cpu() is indeed
setting up a 10msec interval.

#if defined(CONFIG_440)
	val = mfspr( tcr );
	...
	val = gd->bd->bi_intfreq/100;	/* 10 msec */
         ...
Is this a real BUG? I can fix the flash related function which use the
timer but what about all the other modules which use get_timer() - some
are network related.

Thank you.

             reply	other threads:[~2005-01-04 17:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-04 17:31 Andrew Wozniak [this message]
2005-01-04 18:07 ` [U-Boot-Users] PPC440 interval timer off by factor of 10? Wolfgang Denk
2005-01-04 20:11   ` Andrew Wozniak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41DAD30E.1010404@mc.com \
    --to=awozniak@mc.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox