From: Dave Liu <r63238@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] mpc83xx: Correct the burst length for DDR2 with 32 bits
Date: Sat, 04 Aug 2007 13:34:01 +0800 [thread overview]
Message-ID: <1186205641.3718.4.camel@localhost.localdomain> (raw)
In-Reply-To: <1185948086.3774.4.camel@localhost.localdomain>
Sorry for that, the patch only fix bottom half.
I will resend the new patch.
Thanks,
Dave
On Wed, 2007-08-01 at 14:01 +0800, Dave Liu wrote:
> The burst length should be 4 for DDR2 with 32 bits bus
>
> Signed-off-by: Dave Liu<daveliu@freescale.com>
> ---
> cpu/mpc83xx/spd_sdram.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/cpu/mpc83xx/spd_sdram.c b/cpu/mpc83xx/spd_sdram.c
> index 647813f..5e89add 100644
> --- a/cpu/mpc83xx/spd_sdram.c
> +++ b/cpu/mpc83xx/spd_sdram.c
> @@ -730,8 +730,12 @@ long int spd_sdram()
> sdram_cfg |= 0x10000000;
>
> /* The DIMM is 32bit width */
> - if (spd.dataw_lsb == 0x20)
> - sdram_cfg |= 0x000C0000;
> + if (spd.dataw_lsb == 0x20) {
> + if (spd.mem_type == SPD_MEMTYPE_DDR)
> + sdram_cfg |= 0x000C0000;
> + if (spd.mem_type == SPD_MEMTYPE_DDR2)
> + sdram_cfg |= 0x00080000;
> + }
>
> ddrc_ecc_enable = 0;
>
prev parent reply other threads:[~2007-08-04 5:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 6:01 [U-Boot-Users] [PATCH] mpc83xx: Correct the burst length for DDR2 with 32 bits Dave Liu
2007-08-04 5:34 ` Dave Liu [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=1186205641.3718.4.camel@localhost.localdomain \
--to=r63238@freescale.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