From: Changrui Zhang <ccdump@gmail.com>
To: linux-mips@linux-mips.org
Subject: Q: au1200 RCSn signal
Date: Mon, 28 May 2007 17:31:24 +0800 [thread overview]
Message-ID: <465AA16C.1020704@gmail.com> (raw)
Hi!
I am learning ide driver based on AU1200 and the kernel is 2.6.11.The
CROSS_COMPILE I used is
gcc-3.3.5-glibc-2.3.2/mipsel-unknown-linux-gnu.When the ide driver used
RCS2 controller, it worked well.But when i change to use RCS1
controler,it didn't work.The both register MEM_STCFG and MEM_STTIME are
set same: MEM_STCFG 0xfe2401c6 MEM_STTIME 0x7f7ffc3f.I set the time to
max for testing.The RCS2 io_base is 0x18000000,the RCS1 io_base is
0x0c000000.So I set MEM_STADDR1 to 0x10c03f00.
I used the fallowing codes for testing:
while(1){
au_writeb(0xff,0xac000000);
}
I can't see any singal,such as CS,WE,DATA.But I added "udelay(4);" in
the while circle or just change au_writeb to au_readb(0xac000000),I
counld see all the signal is right(has signal).The testing codes as fallow:
while(1){
au_readb(0xac000000);
}
and
while(1){
udelay(4);
au_writeb(0xff,0xac000000)
}
In the testing,the IDE is not connected,as I just want to test the
signal is good or not.
Could someone tell me what wrong it is?Is there any different init
setting between RCS1 and RCS2?How I could make the RCS1 work?
I also come to the U-boot(U-boot1.1.4) to do the same testing after the
reset.The result is same.
reset:
#if 1
li t0, 0xb4001018 /*cs1 addr reg*/
li t1, 0x00
sw t1, 0(t0)
li t0, 0xb4001010/*cfg reg*/
li t1, 0xfe2401c6
sw t1, 0(t0)
li t0, 0xb4001014/*timer reg*/
li t1, 0x7f7ffc3f
sw t1, 0(t0)
li t0, 0xb4001018
li t1, 0x10c03f00
sw t1, 0(t0)
loop: li t0, 0xac000000
li t1, 0xff
sb t1, 0(t0)
b loop
#endif /*for test lzcx add*/
The test changing to CS2 control is good.
Thanks for your help in advance.
Mr.liang
reply other threads:[~2007-05-28 9:32 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=465AA16C.1020704@gmail.com \
--to=ccdump@gmail.com \
--cc=linux-mips@linux-mips.org \
/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