Re: interfacing FPGA to AT91RM9200 | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi Manila, You can use an oscilloscope to find if you write the data out to FPGA.The SMC's config depends on your hardware design, like width, 8 or 16 bit?the speed, the wait etc. Please get these parameters from your hardwareand FPGA engineer. You can find some sample code from kernel, like board-dk.c in 2.6.21, /* Initialization of the Static Memory Controller for Chip Select 2 */ at91_sys_write(AT91_SMC_CSR(2), AT91_SMC_DBW_16 /* 16 bit */ | AT91_SMC_WSEN | AT91_SMC_NWS_(4) /* wait states */ | AT91_SMC_TDF_(1) /* float time */ ); The code like this is enough, but you should change it according to yourhardware. Then you can use ioremap to get the address, and read/writethis address. That's all, hope it's helpful. Regards,Yanjun Luo. ----- Original Message ----- From: Manila GoelTo: yanjun.luoCc: linux-arm@xxxxxxxxxxxxxxxxxxxxxxxxxx: Wednesday, September 03, 2008 2:07 PMSubject: Re: interfacing FPGA to AT91RM9200 2008/8/14 yanjun.luo <yanjun.luo@xxxxxxxxx> Hi Manila, You can use EBI to connect to FPGA, note that at91rm9200only support 16 bit width, you should config SMC registers. Then you need write a driver to communicate with FPGA or youcan operate with mmap from user space if you don't wanthigh performance. Regards,Yanjun Luo. Hi Yanjun,As u hv suggested i hv configured EBI and SMC as under: int __iomem *addPtr; // probably should be volatile!#define BASE_ADDRESS 0x50000000AT91_SYS->EBI_CSA &= 0xffffffef;AT91_SYS->EBI_CFGR &= 0xfffffffe; AT91_SYS->EBI_SMC2_CSR[4]=(AT91C_SMC2_NWS&0x01)|AT91C_SMC2_WSEN|AT91C_SMC2_BAT|AT91C_SMC2_DBW_16;addPtr=(int __iomem*)ioremap(BASE_ADDRESS,4);writew(data,addPtr); but unable to communicate, any suggestions or changes need to be done.Or any body successfully done some thing for interfacing FPGA to at91rm9200. plz send some sample code. ThanksManila 发件人: Manila Goel发送时间: 2008-08-14 12:48:17收件人: linux-arm@xxxxxxxxxxxxxxxxxxxxxx抄送:主题: interfacing FPGA to AT91RM9200 Hello All,I m wrking on at91rm9200 and i hv to interface fpga with this. how can iinterface it. Anyone done, plz help how should i proceed? i m new to this.thanksManila -------------------------------------------------------------------List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-armFAQ: http://www.arm.linux.org.uk/mailinglists/faq.phpEtiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php -------------------------------------------------------------------List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-armFAQ: http://www.arm.linux.org.uk/mailinglists/faq.phpEtiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]
![]() |
|