SRAM support on EIM bus existing drivers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SRAM support on EIM bus existing drivers

Jump to solution
1,699 Views
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

Labels (1)
0 Kudos
1 Solution
727 Views
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.

View solution in original post

0 Kudos
1 Reply
728 Views
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 Kudos