From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: mx6: Add support for Kosagi Novena
Date: Fri, 29 Aug 2014 18:50:43 +0200 [thread overview]
Message-ID: <201408291850.43209.marex@denx.de> (raw)
In-Reply-To: <5400AE68.70209@mail.bg>
On Friday, August 29, 2014 at 06:46:32 PM, Nikolay Dimitrov wrote:
> Hi Marek,
>
> On 8/29/2014 12:30 PM, Marek Vasut wrote:
> > +static struct mx6_mmdc_calibration novena_mmdc_calib = {
> > + /* write leveling calibration determine */
> > + .p0_mpwldectrl0 = 0x00420048,
> > + .p0_mpwldectrl1 = 0x006f0059,
> > + .p1_mpwldectrl0 = 0x005a0104,
> > + .p1_mpwldectrl1 = 0x01070113,
> > + /* Read DQS Gating calibration */
> > + .p0_mpdgctrl0 = 0x437c040b,
> > + .p0_mpdgctrl1 = 0x0413040e,
> > + .p1_mpdgctrl0 = 0x444f0446,
> > + .p1_mpdgctrl1 = 0x044d0422,
> > + /* Read Calibration: DQS delay relative to DQ read access */
> > + .p0_mprddlctl = 0x4c424249,
> > + .p1_mprddlctl = 0x4e48414f,
> > + /* Write Calibration: DQ/DM delay relative to DQS write access */
> > + .p0_mpwrdlctl = 0x42414641,
> > + .p1_mpwrdlctl = 0x46374b43,
> > +};
>
> I think these values should be result of MMDC calibration. If they're
> hardcoded, some SO-DIMM modules will work, some won't.
Yes, that is true. I discussed this with Sean and we decided to add the SPD
stuff in a subsequent patch. These settings are for the SODIMM DRAM that is
available in the current batch of Novena boards (the 4GiB module with ELPIDA
chips).
> > +static struct mx6_ddr_sysinfo novena_ddr_info = {
> > + /* Width of data bus: 0=16, 1=32, 2=64 */
> > + .dsize = 2,
> > + /* Config for full 4GB range so that get_mem_size() works */
> > + .cs_density = 32, /* 32Gb per CS */
> > + /* Single chip select */
> > + .ncs = 1,
> > + .cs1_mirror = 0,
> > + .rtt_wr = 1, /* RTT_Wr = RZQ/4 */
> > + .rtt_nom = 2, /* RTT_Nom = RZQ/2 */
> > + .walat = 3, /* Write additional latency */
> > + .ralat = 7, /* Read additional latency */
> > + .mif3_mode = 3, /* Command prediction working mode */
> > + .bi_on = 1, /* Bank interleaving enabled */
> > + .sde_to_rst = 0x10, /* 14 cycles, 200us (JEDEC default) */
> > + .rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */
> > +};
>
> ncs is hard-coded to 1, while there are available SO-DIMMS on the market
> which have 2 ranks. Novena is supposed to handle memory modules up to
> 4GiB, which means that there's a high chance to have 2-rank module
> installed.
Agreed. Again, the one coming with the board is a Rank1 one, so this is OK until
the SPD readout code lands later.
> > +static struct mx6_ddr3_cfg elpida_4gib_1600 = {
> > + .mem_speed = 1600,
> > + .density = 4,
> > + .width = 64,
> > + .banks = 8,
> > + .rowaddr = 16,
> > + .coladdr = 10,
> > + .pagesz = 2,
> > + .trcd = 1300,
> > + .trcmin = 4900,
> > + .trasmin = 3590,
> > +};
>
> Again, this should be read from SPD mem, not hard-coded.
Again, ACK. But this will come later on.
[...]
Best regards,
next prev parent reply other threads:[~2014-08-29 16:50 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-29 9:30 [U-Boot] [PATCH] ARM: mx6: Add support for Kosagi Novena Marek Vasut
2014-08-29 15:58 ` Stephen Warren
2014-08-29 16:24 ` Marek Vasut
2014-08-29 16:46 ` Nikolay Dimitrov
2014-08-29 16:50 ` Marek Vasut [this message]
2014-08-29 17:08 ` Fabio Estevam
2014-08-30 12:40 ` Marek Vasut
2014-08-30 13:55 ` Fabio Estevam
2014-08-30 14:20 ` Marek Vasut
2014-09-16 11:00 ` Stefano Babic
2014-09-21 13:45 ` Marek Vasut
2014-08-30 14:12 ` Fabio Estevam
2014-08-30 14:22 ` Marek Vasut
2014-08-30 15:20 ` Fabio Estevam
2014-08-30 16:34 ` Marek Vasut
2014-08-30 16:50 ` Fabio Estevam
2014-09-24 16:57 ` Sean Cross
2014-09-27 20:19 ` Marek Vasut
2014-10-02 6:16 ` Sean Cross
2014-10-10 0:02 ` Marek Vasut
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=201408291850.43209.marex@denx.de \
--to=marex@denx.de \
--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.