From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] am33xx: add 600us wait in DDR3 initialization sequence
Date: Wed, 29 Jul 2015 18:51:54 -0400 [thread overview]
Message-ID: <20150729225154.GX25532@bill-the-cat> (raw)
In-Reply-To: <27E9275BC1C8554E840881B19B62BE421B8C94@DENBGAT9EI1MSX.ww902.siemens.net>
On Wed, Jul 29, 2015 at 11:57:26AM +0000, Egli, Samuel wrote:
> Hi James,
> thank you for your reply!
>
> > -----Original Message-----
> > From: Doublesin, James [mailto:doublesin at ti.com]
> > Sent: Dienstag, 28. Juli 2015 21:59
> > To: Egli, Samuel; 'trini at konsulko.com'; Balbi, Felipe
> > Cc: 'u-boot at lists.denx.de'; 'hs at denx.de'; 'Stefan Roese'; Meier, Roger;
> > Senn, Joerg; Belogolov, Oleg
> > Subject: RE: [RFC] am33xx: add 600us wait in DDR3 initialization sequence
> >
> > Hi Samuel, I don't think these changes are necessary.
> >
> > I think your concern about the initialization steps is not correct. The
> > first setting of the REF_CTRL (before SDRAM_CONFIG write) will be used by
> > the EMIF controller to determine the delay between the rising edge of
> > DDR_RESETn and DDR_CKE. We typically write a value of 0x3100 in REF_CTRL
> > to achieve this, which comes from this formula:
> >
> > (16*SDRAM_REF_CTRL)/400MHz > 500us
>
> That's interesting. This isn't really documented in the TRM. But I see
> ddr.c:
> ...
> if (regs->zq_config)
> writel(0x80003100, &emif_reg[nr]->emif_sdram_ref_ctrl);
> ...
> Why does this depend on zq_config? While debugging I saw that we
This part I can answer. We use the same functions on DDR2 and DDR3 and
use the presence of zq_config in regs to know if this is a DDR2 or DDR3
setup.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150729/d21b14a5/attachment.sig>
prev parent reply other threads:[~2015-07-29 22:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 11:46 [U-Boot] [RFC] am33xx: add 600us wait in DDR3 initialization sequence Egli, Samuel
2015-07-17 13:55 ` Stefan Roese
2015-07-28 14:31 ` Egli, Samuel
2015-07-28 14:42 ` Tom Rini
2015-07-29 6:48 ` Egli, Samuel
2015-07-28 19:58 ` Doublesin, James
2015-07-29 11:57 ` Egli, Samuel
2015-07-29 22:51 ` Tom Rini [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=20150729225154.GX25532@bill-the-cat \
--to=trini@konsulko.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.