public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: 齐尧 <qiyao@bit.edu.cn>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] I can not drive CS8900 on mx1ads by U-boot-1.1.1-imx1
Date: Mon, 20 Sep 2004 13:45:38 +0800	[thread overview]
Message-ID: <295658822.30249@eyou.net> (raw)

Hi
    I have downlodaded the u-boot-1.1.1 and patch for imx1,and i have cross-compiled them successfully!.
    Now ,the u-boot can work well on mx1ads, but the i can not control ethcad cs8900 very well.i can not read the id of cs8900.I have ported the blob to mx1ads ,and i can get the id of cs8900 .now ,i just copy the code in blob to u-boot to get the id of cs8900 ,but i am failed .I do not know why .
    the code related to is as follows :
    //set CS4U 
    *(volatile unsigned long*)(0x00220020)  = 0x00000F00;
    //set CS4L control register
    *(volatile unsigned long*)(0x00220024)  = 0x80001501;

    //set  the GPIO muxing to use Chip Select 4
    *(volatile unsigned long*)(0x0021C020) &= 0xFF3FFFFF;
    *(volatile unsigned long*)(0x0021C038) &= 0xFF3FFFFF;
    //the irq is connect to  GPIO pin to PortC pin 17
    *((volatile unsigned long* ) 0x0021c220)&=~0x00020000;
    *((volatile unsigned long*)  0x0021c238)&=~0x00020000;
    //send the base address of cs8900 on the ADD Bus 
     c = *(volatile unsigned char *)(0x15000300);
     CS8900_PPTR = regno;
     printf("CS8900_PDATA = %x\n",CS8900_PDATA);

the result is always 0x5555 or 0x5575,i do not know why,these codes above can work well in blob.
 I am looking forward your reply,thank ahead!

       Beijing Institute of Technology   Qiyao
       E-mail : qtopia at 126.com
       msn: qiyaobit at hotmail.com

             reply	other threads:[~2004-09-20  5:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20  5:45 齐尧 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-19  8:35 [U-Boot-Users] I can not drive CS8900 on mx1ads by U-boot-1.1.1-imx1 齐尧

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=295658822.30249@eyou.net \
    --to=qiyao@bit.edu.cn \
    --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