All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Query regarding PSDMR register values.
Date: Thu, 20 Jan 2005 08:20:49 -0500	[thread overview]
Message-ID: <41EFB031.4050901@smiths-aerospace.com> (raw)
In-Reply-To: <3D9FDCA910DD4445896A0BE5ECF009D40259A5B1@bla.satyam.com>

Apoorv_Sangal wrote:
> Hello All,
> I am customizing Uboot for PowerQuiccII 8266 based PMC card.
> Can anyone please let me know how the value of the PSDMR register is
> obtained / calculated?
> We are using MT48LC16M16A2 SDRAM (SODIMM). Specifically, we are looking or
> the values of RFRC, PRETOACT, ACTTORW, LDOTOPRE and WRC fields in PSDMR. The
> datasheet of SDRAM gives those values in nanoseconds.
> But the PSDMR register in Uboot needs values in clock cycles.
> Can anyone please tell me how to calculate the values for the required
> fields (in clock cycles) from the values in the datasheet (in nanosecs)?
> 
> Thanks & Regards,
> Apoorv Sangal.

freq = 1/time
time = 1/freq
clock cycles = time * freq

Pick the one that matches the problem and use consistent units.

Read the 8266 User's Manual and your board documentation/schematic to 
determine the frequency that your CPU is clocked at.  Use the "ceiling" 
function on your clock cycles calculation (i.e. "round up").

gvb

      reply	other threads:[~2005-01-20 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-20 10:56 [U-Boot-Users] Query regarding PSDMR register values Apoorv_Sangal
2005-01-20 13:20 ` Jerry Van Baren [this message]

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=41EFB031.4050901@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.