* [U-Boot-Users] I can not drive CS8900 on mx1ads by U-boot-1.1.1-imx1
@ 2004-09-20 5:45 齐尧
0 siblings, 0 replies; 2+ messages in thread
From: 齐尧 @ 2004-09-20 5:45 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot-Users] I can not drive CS8900 on mx1ads by U-boot-1.1.1-imx1
@ 2004-09-19 8:35 齐尧
0 siblings, 0 replies; 2+ messages in thread
From: 齐尧 @ 2004-09-19 8:35 UTC (permalink / raw)
To: u-boot
I have downloaded u-boot-1.1.1 amd u-boot-1.1.1-imx1.diff,and I have cross-compile them successfully.luckly,the bootloader can init the serial port.then ,I want to enable the CS8900,but failed.
I used to boot mx1ads by BLOB,and blob can get the ID of cs8900 correctly,so I cpoy these codes in blob to U-boot,but these codes are useless to get the ID of CS8900.The codes are as follows:
unsigned short c;
//set chip select 4 upper control register
*(volatile P_U32)(0x00220020) = 0x00000F00;
//set chip select 4 lower control register
*(volatile P_U32)(0x00220024) = 0x80001501;
//p the GPIO muxing to use Chip Select 4
*(volatile unsigned int *)(0x0021C020) &= 0xFF3FFFFF;
*(volatile unsigned int *)(0x0021C038) &= 0xFF3FFFFF;
//QiYao change the GPIO pin to PortC pin 17
*((volatile unsigned int * ) 0x0021c220)&=~0x00020000;
*((volatile unsigned int *) 0x0021c238)&=~0x00020000;
c = *(volatile unsigned short *)(0x15000300);//The Base address of CS8900
CS8900_PPTR = regno;
printf("CS8900_PDATA = %x\n",CS8900_PDATA);
I have check the codes for some times ,and i dnot know where the mistake is,so i ask you to help me.
Qiyao , Beijing Institute of Technology
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-20 5:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 5:45 [U-Boot-Users] I can not drive CS8900 on mx1ads by U-boot-1.1.1-imx1 齐尧
-- strict thread matches above, loose matches on Subject: below --
2004-09-19 8:35 齐尧
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox