How can i make eim interface with fpga using multiple dma?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can i make eim interface with fpga using multiple dma?

1,952件の閲覧回数
hanseunglee
Contributor III

Hello everyone!!

I have a question.!

I want to make interface i.mx6 solo and FPGA use EIM(with sdma).

I've already tested with that using eim.

But, it is not working very well.

                              |      |      |      |      |      |   <= inturrupts (200us interval)

dma channel 0      |-----|

dma channel 1             |-----|

dma channel 2                    |-----|

....   

However, this method did not work well because of the schemeler of dma.

How can I make dma without being pushed back to match the interrupt signal?

ラベル(3)
0 件の賞賛
返信
3 返答(返信)

1,764件の閲覧回数
j_araya
Contributor II

igorpadykov‌, hanseunglee

I would like to ask a follow-up question on this topic:

What if I just need an interface between a FPGA and the i.mx6's RAM by using a single SDMA channel? As far as I understand, I could use the "External Memory to External Memory Script" provided in the Reference Manual.

The question is:

Would the script be already implemented in the kernel if I compile it with "DMA Engine support" or do I need to write a driver myself to manage the communication between the EIM port and the i.mx6?

Note: I have seen that some devices i.e. UART have a DMA section in the Device Tree for them to carry out the communication through the SDMA, would that be necessary for the EIM in this case as well?

Thanks!

Jose

0 件の賞賛
返信

1,764件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Jose

no, by default NXP Linux does not support sdma with EIM module.

There are some sdma tutorials which may be helpful:

Freescale i.MX SDMA tutorial (part I) 

Best regards
igor

0 件の賞賛
返信

1,764件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Hanseung

seems that can be accomplished developing custom sdma script,

this may be developed with help of Professional Services

NXP Professional Services|NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信