SRAM support on EIM bus existing drivers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SRAM support on EIM bus existing drivers

跳至解决方案
2,019 次查看
nishad_kamdar
Contributor IV

I have a a custom iMX6q board, It has is uboot and kernel in Weim NOR and rootfs in eMMC, it is booting just fine, however,  i have an FPGA connected on the EIM bus.

Following are the connection,

CS1

26 bit address lines

lower order data bus

Now i want to access the FPGA as an SRAM. I have the resources to write a block ram into the FPGA.

But i am new to writing drivers in Linux.

I am trying to find out an existing RAM driver in the BSP.

During m search i came across MTD_RAM and MTD_PLATRAM

Can anyone tell me what they do and can they help me in accessing the SRAM i write in the FPGA.

help would be appreciated,

nishad

标签 (1)
0 项奖励
回复
1 解答
1,047 次查看
igorpadykov
NXP Employee
NXP Employee

Hi, nishad

for writing RAM driver I would suggest to start with WEIM driver

included in i.MX6 Sabre AI design and modify it for RAM . Pelase check

Chapter 36 "WEIM NOR Driver" i.MX_6Dual6Quad_Linux_Reference_Manual.pdf

"L3.0.35_4.1.0_LINUX_DOCS"

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREAUTO&fpsp=1&tab=Documentat...

If you wish to learn how to write Linux drivers, I would suggest to start

with link below

http://www.xml.com/ldd/chapter/book/ch01.html

Reagrding "MTD_RAM and MTD_PLATRAM" drivers, I do not think that

they will be useful, probably they are from other processors.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,048 次查看
igorpadykov
NXP Employee
NXP Employee

Hi, nishad

for writing RAM driver I would suggest to start with WEIM driver

included in i.MX6 Sabre AI design and modify it for RAM . Pelase check

Chapter 36 "WEIM NOR Driver" i.MX_6Dual6Quad_Linux_Reference_Manual.pdf

"L3.0.35_4.1.0_LINUX_DOCS"

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREAUTO&fpsp=1&tab=Documentat...

If you wish to learn how to write Linux drivers, I would suggest to start

with link below

http://www.xml.com/ldd/chapter/book/ch01.html

Reagrding "MTD_RAM and MTD_PLATRAM" drivers, I do not think that

they will be useful, probably they are from other processors.

0 项奖励
回复