From: Frank Young <young726@hotmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] A question about sdram_init
Date: Thu, 13 May 2004 14:54:30 -0400 [thread overview]
Message-ID: <BAY2-F150B8F0GuRQm600014934@hotmail.com> (raw)
To explain the problem easier, I stripped down the sdram_init() to three DCR
instructions:
void sdram(void) {
/*1st*/ mtsdram0(mem_mcopt1, 0x00000000);
/*2nd*/ mtsdram0(mem_mb0cf, 0x00008001);
/*3rd*/ mtsdram0(mem_mcopt1, 0x80800000);
return;
}
These three instructions is used to initialize 4MB sdram. But the phenomenon
I had is:
1. The sdram() hanged after 2nd line, i.e. after set up 4MB. But it didn't
go through 3rd line and didn't return.
2. If the 1st line is commented, i.e. not disable everything, sdram() could
return.
3. Since sdram() is called from start.S, I rewrote all these code in start.S
in assembly language and let them run in start.S (commented out "bl
sdram_init"), these three lines can run without any problem. They didn't
interfere each other.
So what could be a cause of this problem?
Thanks!
Frank
_________________________________________________________________
Express yourself with the new version of MSN Messenger! Download today -
it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/
next reply other threads:[~2004-05-13 18:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-13 18:54 Frank Young [this message]
2004-05-13 19:27 ` [U-Boot-Users] A question about sdram_init Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-05-13 23:12 Frank Young
2004-05-13 23:39 ` Wolfgang Denk
2004-05-14 0:22 Frank Young
2004-05-14 7:35 ` Wolfgang Denk
2004-05-14 7:36 [U-Boot-Users] U-Boot on LH7A400 Wolfgang Denk
2004-05-14 8:15 ` [U-Boot-Users] A question about sdram_init Stefan Roese
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=BAY2-F150B8F0GuRQm600014934@hotmail.com \
--to=young726@hotmail.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.