* [U-Boot-Users] Query regarding PSDMR register values.
@ 2005-01-20 10:56 Apoorv_Sangal
2005-01-20 13:20 ` Jerry Van Baren
0 siblings, 1 reply; 2+ messages in thread
From: Apoorv_Sangal @ 2005-01-20 10:56 UTC (permalink / raw)
To: u-boot
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.
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Query regarding PSDMR register values.
2005-01-20 10:56 [U-Boot-Users] Query regarding PSDMR register values Apoorv_Sangal
@ 2005-01-20 13:20 ` Jerry Van Baren
0 siblings, 0 replies; 2+ messages in thread
From: Jerry Van Baren @ 2005-01-20 13:20 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-20 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 10:56 [U-Boot-Users] Query regarding PSDMR register values Apoorv_Sangal
2005-01-20 13:20 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox