linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: 陈希 <xchen@sunrisetelecom.com.cn>
To: <u-boot-users@lists.sourceforge.net>
Cc: linuxppc-embedded@ozlabs.org
Subject: sdram init MRS command
Date: Fri, 22 Dec 2006 17:34:18 +0800	[thread overview]
Message-ID: <20061222094604.B3802DDE3B@ozlabs.org> (raw)

Hi,

	CPU type: MPC885
	SDRAM:    48LC16M16A2-75 x2

 	memctl->memc_mar=	0x00000088;
	memctl->memc_or1 = CFG_OR1_PRELIM;
	memctl->memc_br1 = CFG_BR1_PRELIM;
	memctl->memc_mamr = CFG_MAMR_9COL & (~(MAMR_PTAE));	/* no
refresh yet */
	udelay(200);
	memctl->memc_mcr=0x80002105; 	->>>>>>>>  after this I think the
function should sent data through address line
	udelay(1);
	memctl->memc_mamr= ( (CFG_MAMR_9COL &0xfffffff0) |0x08);
	udelay(200);

	As you see, The code set mar and run the ram word 0x05-0x07 to
precharge ,nop and MRS. After run MRS command I think the code should write
data through address line to set mode. But I don't find this step.  The
datasheet said mode redister are set  through A0-A12. My question is how the
mpc8xx set sdram mode.

Thanks
Andy

                 reply	other threads:[~2006-12-22  9:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20061222094604.B3802DDE3B@ozlabs.org \
    --to=xchen@sunrisetelecom.com.cn \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=u-boot-users@lists.sourceforge.net \
    /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;
as well as URLs for NNTP newsgroup(s).